mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Clear removed_collections after reap
Previous code forgot to clear the removed_collections queues after reaped the collections in _reap_collection. Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
This commit is contained in:
parent
d8351a8d9e
commit
a4d2a53cf6
@ -1043,9 +1043,14 @@ void NewStore::_queue_reap_collection(CollectionRef& c)
|
||||
|
||||
void NewStore::_reap_collections()
|
||||
{
|
||||
Mutex::Locker l(reap_lock);
|
||||
for (list<CollectionRef>::iterator p = removed_collections.begin();
|
||||
p != removed_collections.end();
|
||||
reap_lock.Lock();
|
||||
|
||||
list<CollectionRef> removed_colls;
|
||||
removed_colls.swap(removed_collections);
|
||||
reap_lock.Unlock();
|
||||
|
||||
for (list<CollectionRef>::iterator p = removed_colls.begin();
|
||||
p != removed_colls.end();
|
||||
++p) {
|
||||
CollectionRef c = *p;
|
||||
dout(10) << __func__ << " " << c->cid << dendl;
|
||||
|
Loading…
Reference in New Issue
Block a user