dbwrap3: Call dbwrap_local_open with the correct tdb flags
authorVolker Lendecke <vl@samba.org>
Tue, 17 Apr 2018 14:32:20 +0000 (16:32 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 23 Apr 2018 23:53:19 +0000 (01:53 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/dbwrap/dbwrap_open.c

index d6c19e3d10796a6062e78151f4d51d06844a63e6..e05e011d0d4f1de1b4e0a49b749f6f52f72913ab 100644 (file)
@@ -186,6 +186,7 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx,
                if (hash_size == 0) {
                        hash_size = lpcfg_tdb_hash_size(lp_ctx, name);
                }
+               tdb_flags = lpcfg_tdb_flags(lp_ctx, tdb_flags);
 
                result = dbwrap_local_open(mem_ctx, lp_ctx, name, hash_size,
                                           tdb_flags, open_flags, mode,