]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix the wrong usage for map_any. 18939/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 15 Nov 2017 16:29:32 +0000 (00:29 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 15 Nov 2017 16:33:09 +0000 (00:33 +0800)
If Onode::flushing_count > 0, it should return true rahter than false.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueStore.cc

index 66c5b29582a5045c9ca3303b8941cb871aadca1b..3c2c348b1c38e944fb1d519beb20d3267638a44b 100644 (file)
@@ -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;