smbd: Allow another database between brlock.tdb and leases.tdb
authorVolker Lendecke <vl@samba.org>
Sun, 15 Sep 2019 09:58:43 +0000 (11:58 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 17 Sep 2019 22:49:39 +0000 (22:49 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/leases_db.c

index b739d618c49579c40b1915ff2f57b0fc0e04f91d..19c5a612ecc71a1da842c56497a6713b033c4d41 100644 (file)
@@ -53,7 +53,7 @@ bool leases_db_init(bool read_only)
                            TDB_SEQNUM|
                            TDB_INCOMPATIBLE_HASH,
                            read_only ? O_RDONLY : O_RDWR|O_CREAT, 0644,
-                           DBWRAP_LOCK_ORDER_2, DBWRAP_FLAG_NONE);
+                           DBWRAP_LOCK_ORDER_4, DBWRAP_FLAG_NONE);
        TALLOC_FREE(db_path);
        if (leases_db == NULL) {
                DEBUG(1, ("ERROR: Failed to initialise leases database\n"));