s3:share_mode_lock: consistently debug share_mode_entry records
authorStefan Metzmacher <metze@samba.org>
Fri, 28 Aug 2020 13:56:35 +0000 (15:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 3 Sep 2020 13:34:11 +0000 (13:34 +0000)
commit8a8b90eba76b94f3d7291ccc86fe1e80d4423ff3
tree447a55bc870448a11e18afd40dfbd4364708d658
parent4aa4f12f5333bd4913989ae1f54027e480535eb4
s3:share_mode_lock: consistently debug share_mode_entry records

share_mode_entry_do(), share_mode_forall_entries() and
share_entry_forall() print the record before the callback is called
and when it was modified or deleted.

This makes it much easier to debug problems.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14428

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 4d740ac2084a68c6d4836cd83ea5d5f1ee9d37a2)
source3/locking/share_mode_lock.c