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: v12.2.5~97^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=81de7c6f1dacb2f87d574ef4202898c2f297739a;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 (cherry picked from commit 039ee8328e92d6834cd0cd4b77af75dc55c65221) --- 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;