Rev 640: 2nd tdb is cache only in http://samba.org/~tridge/3_0-ctdb

tridge at samba.org tridge at samba.org
Tue Oct 16 07:29:03 GMT 2007


------------------------------------------------------------
revno: 640
revision-id: tridge at samba.org-20071016072902-lj8ftd20qghh3lug
parent: tridge at samba.org-20071006041519-eg23dpcn79ippxcl
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Tue 2007-10-16 17:29:02 +1000
message:
  2nd tdb is cache only
modified:
  source/nsswitch/idmap_tdb2.c   idmap_tdb2.c-20070531053925-e5x7av5etjs83rk0-1
=== modified file 'source/nsswitch/idmap_tdb2.c'
--- a/source/nsswitch/idmap_tdb2.c	2007-10-05 15:04:10 +0000
+++ b/source/nsswitch/idmap_tdb2.c	2007-10-16 07:29:02 +0000
@@ -183,7 +183,7 @@
 	db_path = lock_path("idmap2_cache.tdb");
 
 	/* Open idmap repository */
-	if (!(idmap_tdb2_tmp = tdb_open_log(db_path, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0644))) {
+	if (!(idmap_tdb2_tmp = tdb_open_log(db_path, 0, TDB_CLEAR_IF_FIRST, O_RDWR|O_CREAT, 0644))) {
 		DEBUG(0, ("Unable to open cache idmap database '%s'\n", db_path));
 		return NT_STATUS_UNSUCCESSFUL;
 	}



More information about the samba-cvs mailing list