BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
return NT_STATUS_WAS_LOCKED;
}
+ g_lock_cleanup_shared(&lck);
+
if (lck.num_shared != 0) {
g_lock_get_shared(&lck, 0, blocker);
lck.exclusive = self;
+ g_lock_cleanup_shared(&lck);
+
status = g_lock_store(rec, &lck, NULL, NULL, 0);
if (!NT_STATUS_IS_OK(status)) {
DBG_DEBUG("g_lock_store() failed: %s\n",