From: Jianpeng Ma Date: Wed, 15 Nov 2017 16:29:32 +0000 (+0800) Subject: os/bluestore: fix the wrong usage for map_any. X-Git-Tag: v13.0.1~174^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=039ee8328e92d6834cd0cd4b77af75dc55c65221;p=ceph.git 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 --- 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;