diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-26 14:12:24 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-31 22:52:13 +0200 |
commit | eee3723df0fef75a3adaa5ae2ec55fd523e3a126 (patch) | |
tree | 3e11bddb3e81ab561e1dcc4de38e1a494c4d8d3c /source4/dsdb | |
parent | 76318acc608dc99da30719495c5e5ef19c0c9a7b (diff) | |
download | samba-eee3723df0fef75a3adaa5ae2ec55fd523e3a126.tar.gz samba-eee3723df0fef75a3adaa5ae2ec55fd523e3a126.tar.xz samba-eee3723df0fef75a3adaa5ae2ec55fd523e3a126.zip |
dsdb: Avoid passing lp_ctx to tdb_wrap_open in partition_metadata_open
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition_metadata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition_metadata.c b/source4/dsdb/samdb/ldb_modules/partition_metadata.c index b3b57447ec..8441b13d47 100644 --- a/source4/dsdb/samdb/ldb_modules/partition_metadata.c +++ b/source4/dsdb/samdb/ldb_modules/partition_metadata.c @@ -240,9 +240,9 @@ static int partition_metadata_open(struct ldb_module *module, bool create) lp_ctx = talloc_get_type_abort(ldb_get_opaque(ldb, "loadparm"), struct loadparm_context); - data->metadata->db = tdb_wrap_open(data->metadata, filename, 10, - TDB_DEFAULT, open_flags, 0660, - lp_ctx); + data->metadata->db = tdb_wrap_open_( + data->metadata, filename, 10, + lpcfg_tdb_flags(lp_ctx, TDB_DEFAULT), open_flags, 0660); if (data->metadata->db == NULL) { talloc_free(tmp_ctx); if (create) { |