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:
Xuehan Xu 2018-05-10 12:22:24 +08:00
parent 0e20e83a5c
commit 46b4e6afa6

View File

@ -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);