Skip to content

Commit

Permalink
os/bluestore: fix the wrong usage for map_any.
Browse files Browse the repository at this point in the history
If Onode::flushing_count > 0, it should return true rahter than false.

Signed-off-by: Jianpeng Ma <[email protected]>
  • Loading branch information
majianpeng committed Nov 15, 2017
1 parent 8ce46e4 commit 039ee83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 039ee83

Please sign in to comment.