]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: don't implicitly create the source object for clone 12353/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 7 Dec 2016 03:36:18 +0000 (11:36 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 7 Dec 2016 03:36:18 +0000 (11:36 +0800)
We shall implicitly create the destination object instead and
missing source object usually indicates an error.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index f96eb7bd25f0ea3ae1799961f0213da1444b4886..5ca931c1f30f7b0657c6929143da824245e4e55b 100644 (file)
@@ -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;
     }