s3: Add a "lock_order" argument to db_open
[ira/wip.git] / source3 / utils / status.c
index 8ae8de76a34b35b32768d1716f50679a0ba4480f..8f8f3945cbf976edd44c215dc4b4bffbbe8c13af 100644 (file)
@@ -455,7 +455,8 @@ static int traverse_sessionid(const char *key, struct sessionid *session,
                int result;
                struct db_context *db;
                db = db_open(NULL, lock_path("locking.tdb"), 0,
-                            TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDONLY, 0);
+                            TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDONLY, 0,
+                            DBWRAP_LOCK_ORDER_1);
 
                if (!db) {
                        d_printf("%s not initialised\n",