s3: Add a "lock_order" argument to db_open
[metze/samba/wip.git] / source3 / winbindd / idmap_autorid.c
index 6a39816268d82f73b6228b827d987f114334ade1..9048c126b5b28640aafaf17827c19baeb3c9d86a 100644 (file)
@@ -405,7 +405,8 @@ static NTSTATUS idmap_autorid_db_init(void)
 
        /* Open idmap repository */
        autorid_db = db_open(NULL, state_path("autorid.tdb"), 0,
-                            TDB_DEFAULT, O_RDWR | O_CREAT, 0644);
+                            TDB_DEFAULT, O_RDWR | O_CREAT, 0644,
+                            DBWRAP_LOCK_ORDER_1);
 
        if (!autorid_db) {
                DEBUG(0, ("Unable to open idmap_autorid database '%s'\n",