summaryrefslogtreecommitdiffstats
path: root/source3/lib/server_mutex.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-03-26 14:41:03 +0000
committerJeremy Allison <jra@samba.org>2014-03-31 22:52:14 +0200
commitd6db35d7a564ee556b74131ef4c3a3cdb8097e14 (patch)
tree1576430f97d46752b41efedbc8970d2eddf79f8e /source3/lib/server_mutex.c
parentf995c6e6d4bfe4a50ca0017c722bdfb329121958 (diff)
downloadsamba-d6db35d7a564ee556b74131ef4c3a3cdb8097e14.tar.gz
samba-d6db35d7a564ee556b74131ef4c3a3cdb8097e14.tar.xz
samba-d6db35d7a564ee556b74131ef4c3a3cdb8097e14.zip
tdb_wrap: Remove tdb_wrap_open_ again
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/server_mutex.c')
-rw-r--r--source3/lib/server_mutex.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/server_mutex.c b/source3/lib/server_mutex.c
index 24a301bde9..43cf77b94d 100644
--- a/source3/lib/server_mutex.c
+++ b/source3/lib/server_mutex.c
@@ -72,13 +72,13 @@ struct named_mutex *grab_named_mutex(TALLOC_CTX *mem_ctx, const char *name,
fname = lock_path("mutex.tdb");
- result->tdb = tdb_wrap_open_(result, fname,
- lpcfg_tdb_hash_size(lp_ctx, fname),
- lpcfg_tdb_flags(lp_ctx,
- TDB_DEFAULT |
- TDB_CLEAR_IF_FIRST |
- TDB_INCOMPATIBLE_HASH),
- O_RDWR|O_CREAT, 0600);
+ result->tdb = tdb_wrap_open(result, fname,
+ lpcfg_tdb_hash_size(lp_ctx, fname),
+ lpcfg_tdb_flags(lp_ctx,
+ TDB_DEFAULT |
+ TDB_CLEAR_IF_FIRST |
+ TDB_INCOMPATIBLE_HASH),
+ O_RDWR|O_CREAT, 0600);
talloc_unlink(result, lp_ctx);
if (result->tdb == NULL) {
DEBUG(1, ("Could not open mutex.tdb: %s\n",