diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-26 14:20:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-31 22:52:13 +0200 |
commit | db630a525348d84dcf572f8d55639071a798894c (patch) | |
tree | 681f71570a71e44befce73dd78464dc97e50c581 /source4/lib | |
parent | 0b59f05de794d919eb60210072f10f009d1c396c (diff) | |
download | samba-db630a525348d84dcf572f8d55639071a798894c.tar.gz samba-db630a525348d84dcf572f8d55639071a798894c.tar.xz samba-db630a525348d84dcf572f8d55639071a798894c.zip |
imessaging: Avoid passing lp_ctx to tdb_wrap_open in irpc_namedb_open
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/messaging/messaging.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index 7a92eb0aa0c..e182acd83c3 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -899,7 +899,10 @@ static struct tdb_wrap *irpc_namedb_open(struct imessaging_context *msg_ctx) if (path == NULL) { return NULL; } - t = tdb_wrap_open(msg_ctx, path, 0, 0, O_RDWR|O_CREAT, 0660, msg_ctx->lp_ctx); + t = tdb_wrap_open_(msg_ctx, path, + lpcfg_tdb_hash_size(msg_ctx->lp_ctx, path), + lpcfg_tdb_flags(msg_ctx->lp_ctx, 0), + O_RDWR|O_CREAT, 0660); talloc_free(path); return t; } |