Skip to content

Commit

Permalink
os/filestore: fix potential result code overwriting
Browse files Browse the repository at this point in the history
Signed-off-by: xie xingguo <[email protected]>
  • Loading branch information
xiexingguo committed Oct 14, 2016
1 parent c701628 commit 0ccde6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/os/filestore/FileStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3813,6 +3813,8 @@ int FileStore::_move_ranges_destroy_src(const coll_t& src_cid, const ghobject_t&
uint64_t len = move_info[i].get<2>();

r = _do_clone_range(**t, **b, srcoff, len, dstoff);
if (r < 0)
break;
}

dout(10) << __func__ << cid << "/" << oid << " " << " = " << r << dendl;
Expand Down

0 comments on commit 0ccde6e

Please sign in to comment.