From: xie xingguo Date: Wed, 27 Jan 2016 06:20:09 +0000 (+0800) Subject: BlueStore: add error handling for clone X-Git-Tag: v10.0.4~75^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=41ff579f5e4ecfa2491b3bbcdd3d5187f6ca2bb6;p=ceph.git BlueStore: add error handling for clone Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 4dcf71d739c7..3243e4896f6c 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6197,6 +6197,8 @@ int BlueStore::_clone(TransContext *txc, goto out; r = _do_write(txc, c, newo, 0, oldo->onode.size, bl, 0); + if (r < 0) + goto out; } // attrs