s3: use TDB_INCOMPATIBLE_HASH (the jenkins hash) on all TDB_CLEAR_IF_FIRST tdb's.
[obnox/samba-ctdb.git] / source3 / utils / status.c
index 9491076b22e969845968595c28e4e0c3719ef675..fc26573bd4d7310c398f96c719129bb6394de11a 100644 (file)
@@ -403,7 +403,7 @@ static int traverse_sessionid(struct db_record *db, void *state)
        if ( show_processes ) {
                struct db_context *db;
                db = db_open(NULL, lock_path("sessionid.tdb"), 0,
-                            TDB_CLEAR_IF_FIRST, O_RDONLY, 0644);
+                            TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDONLY, 0644);
                if (!db) {
                        d_printf("sessionid.tdb not initialised\n");
                } else {
@@ -449,7 +449,7 @@ static int traverse_sessionid(struct db_record *db, void *state)
                int result;
                struct db_context *db;
                db = db_open(NULL, lock_path("locking.tdb"), 0,
-                            TDB_CLEAR_IF_FIRST, O_RDONLY, 0);
+                            TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDONLY, 0);
 
                if (!db) {
                        d_printf("%s not initialised\n",