mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
mds: set could_consume to false when no purge queue item actually executed
Fixes: http://tracker.ceph.com/issues/24073 Signed-off-by: Xuehan Xu <xuxuehan@360.cn>
This commit is contained in:
parent
0e20e83a5c
commit
46b4e6afa6
@ -350,7 +350,6 @@ bool PurgeQueue::_consume()
|
||||
|
||||
bool could_consume = false;
|
||||
while(can_consume()) {
|
||||
could_consume = true;
|
||||
|
||||
if (delayed_flush) {
|
||||
// We are now going to read from the journal, so any proactive
|
||||
@ -376,6 +375,7 @@ bool PurgeQueue::_consume()
|
||||
return could_consume;
|
||||
}
|
||||
|
||||
could_consume = true;
|
||||
// The journaler is readable: consume an entry
|
||||
bufferlist bl;
|
||||
bool readable = journaler.try_read_entry(bl);
|
||||
|
Loading…
Reference in New Issue
Block a user