smbd: Use share_mode's flags in contend_level2_oplocks
authorVolker Lendecke <vl@samba.org>
Sun, 30 Jun 2019 07:50:46 +0000 (09:50 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 4 Jul 2019 14:03:29 +0000 (14:03 +0000)
commit2d7efba0d9dd212df127ffd697ff72fb30b72861
tree234561bc625a90eb3d35d0f959b353a6043c1e1d
parent0e34096caea40ef2d17aa229b5344818aa5a4baf
smbd: Use share_mode's flags in contend_level2_oplocks

Here we traverse the oplocks and leases when breaking read leases. We
find out here whether any of those are still left.

As it's the receivers of the messages that downgrade the database
entries, we might do that more than once. Possible future
optimization?

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/oplock.c