mirror of
https://github.com/samba-team/samba.git
synced 2025-03-07 00: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;
|
NTSTATUS status;
|
||||||
|
|
||||||
if (lease != NULL) {
|
if (lease != NULL) {
|
||||||
bool our_lease = smb2_lease_equal(
|
bool our_lease = is_same_lease(fsp, e, lease);
|
||||||
fsp_client_guid(fsp),
|
|
||||||
&lease->lease_key,
|
|
||||||
&e->client_guid,
|
|
||||||
&e->lease_key);
|
|
||||||
if (our_lease) {
|
if (our_lease) {
|
||||||
DBG_DEBUG("Ignoring our own lease\n");
|
DBG_DEBUG("Ignoring our own lease\n");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user