s3: Pass down lock_order to db_open_ctdb
[ira/wip.git] / source3 / lib / dbwrap / dbwrap_open.c
index af24ed884741264fae1561b167490ca18aa37566..731529680e454a1b6f53069a388b6efdd1a192ba 100644 (file)
@@ -106,7 +106,8 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx,
                /* allow ctdb for individual databases to be disabled */
                if (lp_parm_bool(-1, "ctdb", partname, True)) {
                        result = db_open_ctdb(mem_ctx, partname, hash_size,
-                                             tdb_flags, open_flags, mode);
+                                             tdb_flags, open_flags, mode,
+                                             lock_order);
                        if (result == NULL) {
                                DEBUG(0,("failed to attach to ctdb %s\n",
                                         partname));