smbd: Move lease type detection in delay_for_oplock()
commit8a05d2b074d588a481aa372f2923f55cfb3e3a23
authorVolker Lendecke <vl@samba.org>
Tue, 13 Aug 2019 14:56:58 +0000 (13 16:56 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Aug 2019 00:33:12 +0000 (20 00:33 +0000)
tree2302a157792f886cba52e357b737283872a11d46
parent9a11f361cc19d3b8da3469424697486d0fd8dd6d
smbd: Move lease type detection in delay_for_oplock()

Walk the share_modes array only once.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 20 00:33:12 UTC 2019 on sn-devel-184
source3/smbd/open.c