]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix the wrong usage for map_any. 20964/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 15 Nov 2017 16:29:32 +0000 (00:29 +0800)
committerIgor Fedotov <ifedotov@suse.com>
Tue, 20 Mar 2018 12:54:04 +0000 (15:54 +0300)
If Onode::flushing_count > 0, it should return true rahter than false.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 039ee8328e92d6834cd0cd4b77af75dc55c65221)

src/os/bluestore/BlueStore.cc

index e264182931de6626caa7c3288d2664803fd24dd7..8e46cc513a51fc217160abd233dd20765d2bf1cd 100644 (file)
@@ -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;