1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source3/locking
Volker Lendecke 6e7d28c8e0 smbd: Factor out remove_lease_if_stale()
remove_lease_if_stale() does not have the check

		if (e == e2) {
			/* Not ourselves. */
			continue;
		}

that remove_share_mode_lease() had. However, remove_share_mode_lease()
has already set e->op_type=NO_OPLOCK, so that the

		if (e->op_type != LEASE_OPLOCK) {
			continue;
		}

statement has the same effect.

Why? The next commit will need it for proper error path cleanup.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-08-06 21:49:30 +00:00
..
brlock.c smbd: Don't store num_read_oplocks in brlock.tdb 2019-07-04 14:03:29 +00:00
leases_db.c leases_db: Add getter/setter for share_mode_lease metadata 2019-04-14 04:01:30 +00:00
leases_db.h leases_db: Add getter/setter for share_mode_lease metadata 2019-04-14 04:01:30 +00:00
leases_util.c smbd: Move fsp_client_guid() to locking/ 2019-08-06 21:49:29 +00:00
locking.c smbd: Factor out remove_lease_if_stale() 2019-08-06 21:49:30 +00:00
posix.c s3/locking: Fix logging of lock reference count 2018-10-02 10:40:05 +02:00
proto.h smbd: Factor out remove_lease_if_stale() 2019-08-06 21:49:30 +00:00
share_mode_lock.c smbd: Increase a debug level 2019-07-17 11:27:20 +00:00