summaryrefslogtreecommitdiff
path: root/source4/cluster/local.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-04-17 16:26:27 +0200
committerJeremy Allison <jra@samba.org>2018-04-24 01:53:19 +0200
commitf542552e1d104fa7cc738401c8b224e06ebb478a (patch)
tree98620a8ca52bedb4209098bbe537e98ce8682fd1 /source4/cluster/local.c
parent281822ac8e5ea3a23257d60f5bd9611e63faff0e (diff)
downloadsamba-f542552e1d104fa7cc738401c8b224e06ebb478a.tar.gz
cluster4: Call dbwrap_local_open with the correct tdb_flags
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/cluster/local.c')
-rw-r--r--source4/cluster/local.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/cluster/local.c b/source4/cluster/local.c
index d4c16b00cce..d871dcbd3f9 100644
--- a/source4/cluster/local.c
+++ b/source4/cluster/local.c
@@ -55,20 +55,21 @@ static struct db_context *local_db_tmp_open(struct cluster_ops *ops,
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
char *path, *dbname;
struct db_context *db;
- int hash_size;
+ int hash_size, tdb_flags;
dbname = talloc_asprintf(mem_ctx, "%s.tdb", dbbase);
path = smbd_tmp_path(tmp_ctx, lp_ctx, dbname);
hash_size = lpcfg_tdb_hash_size(lp_ctx, path);
+ tdb_flags = lpcfg_tdb_flags(lp_ctx, flags);
db = dbwrap_local_open(
mem_ctx,
lp_ctx,
path,
hash_size,
- flags,
+ tdb_flags,
O_RDWR|O_CREAT,
0600,
DBWRAP_LOCK_ORDER_NONE,