From 81de7c6f1dacb2f87d574ef4202898c2f297739a 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 (cherry picked from commit 039ee8328e92d6834cd0cd4b77af75dc55c65221) --- 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 e264182931de6..8e46cc513a51f 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6283,9 +6283,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; })) { ++p; continue; -- 2.39.5