From 039ee8328e92d6834cd0cd4b77af75dc55c65221 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Thu, 16 Nov 2017 00:29:32 +0800 Subject: [PATCH] os/bluestore: fix the wrong usage for map_any. If Onode::flushing_count > 0, it should return true rahter than false. Signed-off-by: Jianpeng Ma --- src/os/bluestore/BlueStore.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 66c5b29582a..3c2c348b1c3 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6319,9 +6319,9 @@ void BlueStore::_reap_collections() if (o->flushing_count.load()) { dout(10) << __func__ << " " << c << " " << c->cid << " " << o->oid << " flush_txns " << o->flushing_count << dendl; - return false; + return true; } - return true; + return false; })) { all_reaped = false; continue; -- 2.47.3