mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
smbd: Simplify delay_for_oplock()
Use is_same_lease() Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
This commit is contained in:
parent
021e2d01e6
commit
28868d2457
@ -1888,11 +1888,7 @@ static bool delay_for_oplock(files_struct *fsp,
|
||||
NTSTATUS status;
|
||||
|
||||
if (lease != NULL) {
|
||||
bool our_lease = smb2_lease_equal(
|
||||
fsp_client_guid(fsp),
|
||||
&lease->lease_key,
|
||||
&e->client_guid,
|
||||
&e->lease_key);
|
||||
bool our_lease = is_same_lease(fsp, e, lease);
|
||||
if (our_lease) {
|
||||
DBG_DEBUG("Ignoring our own lease\n");
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user