mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
Merge PR #19702 into master
* refs/pull/19702/head: client: avoid remove same cap twice Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Zheng Yan <zyan@redhat.com>
This commit is contained in:
commit
8ab4c18ec1
@ -4088,7 +4088,6 @@ void Client::trim_caps(MetaSession *s, uint64_t max)
|
||||
// disposable non-auth cap
|
||||
if (!(get_caps_used(in.get()) & ~oissued & mine)) {
|
||||
ldout(cct, 20) << " removing unused, unneeded non-auth cap on " << *in << dendl;
|
||||
remove_cap(cap, true);
|
||||
cap = (remove_cap(cap, true), nullptr);
|
||||
/* N.B. no need to push onto anchor, as we are only removing one cap */
|
||||
trimmed++;
|
||||
|
Loading…
Reference in New Issue
Block a user