From: Ralph Boehme Date: Thu, 20 Feb 2025 15:21:55 +0000 (+0100) Subject: s3/locking: prepare set_share_mode() for Persistent Handles X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff73d2436821f358722560c3bac8f5886ab845e;p=thirdparty%2Fsamba.git s3/locking: prepare set_share_mode() for Persistent Handles Signed-off-by: Ralph Boehme Reviewed-by: Anoop C S --- diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index ee1217d726b..9ff7e487e79 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -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");