git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tdb_wrap: Make mutexes easier to use
[vlendec/samba-autobuild/.git]
/
lib
/
tdb_wrap
/
tdb_wrap.c
diff --git
a/lib/tdb_wrap/tdb_wrap.c
b/lib/tdb_wrap/tdb_wrap.c
index f2f32d1f085984a40a707c24d410677d0d0521cb..e762b334efe89c7d87e00ad0a779d98b9e377d04 100644
(file)
--- a/
lib/tdb_wrap/tdb_wrap.c
+++ b/
lib/tdb_wrap/tdb_wrap.c
@@
-149,6
+149,13
@@
struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx,
}
if (w == NULL) {
}
if (w == NULL) {
+
+ if (tdb_flags & TDB_MUTEX_LOCKING) {
+ if (!tdb_runtime_check_for_robust_mutexes()) {
+ tdb_flags &= ~TDB_MUTEX_LOCKING;
+ }
+ }
+
w = tdb_wrap_private_open(result, name, hash_size, tdb_flags,
open_flags, mode);
} else {
w = tdb_wrap_private_open(result, name, hash_size, tdb_flags,
open_flags, mode);
} else {