From 69bbff23d1fcbae5dc54f7857b743b3fca068c17 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Wed, 7 Dec 2016 11:36:18 +0800 Subject: [PATCH] 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 --- src/os/bluestore/BlueStore.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index f96eb7bd25f..5ca931c1f30 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; } -- 2.47.3