smbd: Use explicit share_mode_wakeup_waiters()
authorVolker Lendecke <vl@samba.org>
Fri, 13 Dec 2019 13:40:03 +0000 (14:40 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 16 Dec 2019 19:02:32 +0000 (19:02 +0000)
We don't need to unparse the locking.tdb record, we just need to wake
up waiters when downgrading a lease

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock.c

index 6a3b1f77688dfebf4a17285146a8f5352ec50f04..2c4449b10b268ddb9d5bdfd7b5c33ca940fc9f09 100644 (file)
@@ -653,13 +653,7 @@ NTSTATUS downgrade_lease(struct smbXsrv_connection *xconn,
                  lease_state,
                  nt_errstr(status));
 
-       /*
-        * No, we did not modify the share mode array. We did modify
-        * the leases_db. But without this we don't notify a lease
-        * break waiter via dbwrap_watch_record. We need to make
-        * leases_db watched too.
-        */
-       lck->data->modified = true;
+       share_mode_wakeup_waiters(id);
 
        fsps_lease_update(sconn, &id, key);