smbd: Avoid calling remove_stale_share_mode_entries() in open.c
authorVolker Lendecke <vl@samba.org>
Mon, 26 Aug 2019 16:56:24 +0000 (18:56 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 17 Sep 2019 22:49:38 +0000 (22:49 +0000)
commit5151b6d58be54d210795e7769033cb33e6c75b0a
treec60986e9016683f5f7d286dfa807e204c9c2d116
parent72a019d4e32d46ae160ecfe2c90348d005ec2449
smbd: Avoid calling remove_stale_share_mode_entries() in open.c

All places that matter explicitly check for staleness. This cleanup
action should only happen before writing the database

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c