]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: CLONE implicitly creates the target
authorSage Weil <sage@redhat.com>
Thu, 15 Sep 2016 19:39:54 +0000 (15:39 -0400)
committerSage Weil <sage@redhat.com>
Fri, 16 Sep 2016 15:15:23 +0000 (11:15 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc

index f7fd1624df48ede8c249bac2a6246d0dce5a9a11..3bdee77f47d85c7598cf2c1e62fd6fcad5b704c4 100644 (file)
@@ -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;
     }