mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
smbd: Fix an assert
This might stumble over stale entries Bug: https://bugzilla.samba.org/show_bug.cgi?id=11844 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
ecbe6c669f
commit
a5d49b7ce1
@ -190,6 +190,7 @@ bool update_num_read_oplocks(files_struct *fsp, struct share_mode_lock *lck)
|
|||||||
/*
|
/*
|
||||||
* If we're the only one, we don't need a brlock entry
|
* If we're the only one, we don't need a brlock entry
|
||||||
*/
|
*/
|
||||||
|
remove_stale_share_mode_entries(d);
|
||||||
SMB_ASSERT(d->num_share_modes == 1);
|
SMB_ASSERT(d->num_share_modes == 1);
|
||||||
SMB_ASSERT(EXCLUSIVE_OPLOCK_TYPE(d->share_modes[0].op_type));
|
SMB_ASSERT(EXCLUSIVE_OPLOCK_TYPE(d->share_modes[0].op_type));
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user