s3: Add a "lock_order" argument to db_open
[ira/wip.git] / source3 / passdb / secrets.c
index e40095d2af35e1fbd57f99e623c400fb43a7b9e7..bd6be353cd2332eeb8d37e66518a6cd244689036 100644 (file)
@@ -75,7 +75,8 @@ bool secrets_init_path(const char *private_dir)
        }
 
        db_ctx = db_open(NULL, fname, 0,
-                        TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+                        TDB_DEFAULT, O_RDWR|O_CREAT, 0600,
+                        DBWRAP_LOCK_ORDER_1);
 
        if (db_ctx == NULL) {
                DEBUG(0,("Failed to open %s\n", fname));