s3: use TDB_INCOMPATIBLE_HASH (the jenkins hash) on all TDB_CLEAR_IF_FIRST tdb's.
[obnox/samba-ctdb.git] / source3 / utils / net_status.c
index 4e4debda5eb64412a2f482e68410b161ec90cb8a..48b5b61db8c0ce310405041103fc6340ef5a3afd 100644 (file)
@@ -87,7 +87,7 @@ static int net_status_sessions(struct net_context *c, int argc, const char **arg
        }
 
        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 == NULL) {
                d_fprintf(stderr, "%s not initialised\n", lock_path("sessionid.tdb"));
                return -1;
@@ -192,7 +192,7 @@ static int net_status_shares_parseable(struct net_context *c, int argc, const ch
        ids.entries = NULL;
 
        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 == NULL) {
                d_fprintf(stderr, "%s not initialised\n", lock_path("sessionid.tdb"));
                return -1;