s3:share_mode_lock: let share_mode_forall_entries/share_entry_forall evaluate e.stale...
commitdeb2f782c95a5e59a0a5da4272239c2d31bc2b6d
authorStefan Metzmacher <metze@samba.org>
Fri, 28 Aug 2020 13:56:35 +0000 (28 15:56 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 31 Aug 2020 11:57:01 +0000 (31 11:57 +0000)
treee63a1d0121a1b04536a734f96e5c5de89668cf90
parent444f2bedf723b89bb9f493c47812bff2154c4113
s3:share_mode_lock: let share_mode_forall_entries/share_entry_forall evaluate e.stale first

It's not really clear why e.stale would be ignored if *modified is set
to true.

This matches the behavior of share_mode_entry_do()

This also makes sure we see the removed entry in level 10 logs again.

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>
source3/locking/share_mode_lock.c