From 71a40cfd7761ac8bb8d0c152783eb8d8f87170a0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 15 Sep 2016 15:39:54 -0400 Subject: [PATCH] os/bluestore: CLONE implicitly creates the target Signed-off-by: Sage Weil --- src/os/bluestore/BlueStore.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index f7fd1624df4..3bdee77f47d 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6596,7 +6596,8 @@ 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_ZERO || + op->op == Transaction::OP_CLONE) { create = true; } -- 2.47.3