s3: Add a "lock_order" argument to db_open
[metze/samba/wip.git] / source3 / torture / torture.c
index 3b023e732944f7f9f988c96b0773f81e694c0acd..e4ce91338ff0bdc682fe8e528c11f0941904a639 100644 (file)
@@ -8561,7 +8561,7 @@ static bool run_local_dbtrans(int dummy)
        TDB_DATA value;
 
        db = db_open(talloc_tos(), "transtest.tdb", 0, TDB_DEFAULT,
-                    O_RDWR|O_CREAT, 0600);
+                    O_RDWR|O_CREAT, 0600, DBWRAP_LOCK_ORDER_1);
        if (db == NULL) {
                printf("Could not open transtest.db\n");
                return false;