From: xie xingguo Date: Wed, 27 Jan 2016 04:11:45 +0000 (+0800) Subject: BlueStore: add error handling for clone_range X-Git-Tag: v10.0.4~75^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e10490abc695dc4323282b5e87486394a195dddd;p=ceph.git BlueStore: add error handling for clone_range Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 0b86b055e460..4dcf71d739c7 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6271,6 +6271,8 @@ int BlueStore::_clone_range(TransContext *txc, goto out; r = _do_write(txc, c, newo, dstoff, bl.length(), bl, 0); + if (r < 0) + goto out; txc->write_onode(newo);