]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/locking: prepare set_share_mode() for Persistent Handles
authorRalph Boehme <slow@samba.org>
Thu, 20 Feb 2025 15:21:55 +0000 (16:21 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 17 Jul 2026 10:18:36 +0000 (10:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/locking/share_mode_lock.c

index ee1217d726ba663e42e168b4e212ad0ae4459903..9ff7e487e792cfaccab2ec63b3546d0e4b91014c 100644 (file)
@@ -2123,6 +2123,11 @@ bool set_share_mode(struct share_mode_lock *lck,
                e.lease_key = *lease_key;
        }
 
+       if (e.flags & SHARE_ENTRY_FLAG_PERSISTENT_OPEN) {
+               d->num_persistent++;
+               d->modified = true;
+       }
+
        ok = share_mode_entry_put(&e, &e_buf);
        if (!ok) {
                DBG_DEBUG("share_mode_entry_put failed\n");