diff options
author | Volker Lendecke <vl@samba.org> | 2019-08-09 13:38:40 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-19 23:14:39 +0000 |
commit | d1cb71fa500ede015600ace58411c857b051794e (patch) | |
tree | 330d1f40c622f977f70af8bf25568a5917985c40 | |
parent | 385a7fb196f7a6bdcdeb74b6e8553da7c810c1ca (diff) | |
download | samba-d1cb71fa500ede015600ace58411c857b051794e.tar.gz |
smbd: Slightly simplify delay_for_oplock()
This is never called for INTERNAL_OPENs anymore, see
handle_share_mode_lease()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/open.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index cdc69e1af1a..f5f91f9e11b 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1871,8 +1871,7 @@ static bool delay_for_oplock(files_struct *fsp, const uint32_t delay_mask = have_sharing_violation ? SMB2_LEASE_HANDLE : SMB2_LEASE_WRITE; - if ((oplock_request & INTERNAL_OPEN_ONLY) || - is_stat_open(fsp->access_mask)) { + if (is_stat_open(fsp->access_mask)) { return false; } |