From: xie xingguo Date: Wed, 7 Dec 2016 03:36:18 +0000 (+0800) Subject: os/bluestore: don't implicitly create the source object for clone X-Git-Tag: v11.1.1~32^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=69bbff23d1fcbae5dc54f7857b743b3fca068c17;p=ceph.git os/bluestore: don't implicitly create the source object for clone We shall implicitly create the destination object instead and missing source object usually indicates an error. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index f96eb7bd25f0..5ca931c1f30f 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -7038,8 +7038,7 @@ void BlueStore::_txc_add_transaction(TransContext *txc, Transaction *t) bool create = false; if (op->op == Transaction::OP_TOUCH || op->op == Transaction::OP_WRITE || - op->op == Transaction::OP_ZERO || - op->op == Transaction::OP_CLONE) { + op->op == Transaction::OP_ZERO) { create = true; }