We must also break leases on other opens if the open of the rename doesn't have
a lease itself. The existing test test_lease_v2_rename() that was added
alongside the deferred rename server code didn't cover this case.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15697
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Oct 31 12:47:24 UTC 2024 on atb-devel-224
(cherry picked from commit
efbbe8d6f80ceb6107f20486623eee949409c0ff)
Autobuild-User(v4-20-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-20-test): Mon Dec 9 09:45:57 UTC 2024 on atb-devel-224
+++ /dev/null
-^samba3.smb2.compound_async.rename_middle\(fileserver\)
struct timeval timeout;
bool ok;
- if (fsp->oplock_type != LEASE_OPLOCK) {
- return NULL;
- }
-
ok = share_mode_forall_leases(
lck, delay_rename_lease_break_fn, &state);
if (!ok) {