]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ECTransaction,ReplicatedBackend: create op is new in octopus 29092/head
authorSage Weil <sage@redhat.com>
Wed, 17 Jul 2019 16:55:42 +0000 (11:55 -0500)
committerSage Weil <sage@redhat.com>
Wed, 17 Jul 2019 16:55:42 +0000 (11:55 -0500)
Not nautilus!

Fixes: https://tracker.ceph.com/issues/40755
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ECTransaction.cc
src/osd/ReplicatedBackend.cc

index 0489fd7b5a78f3f7c42d9c22425fd5836f45897d..1eec367c976c54941d47c3fadec69288d996191e 100644 (file)
@@ -265,7 +265,7 @@ void ECTransaction::generate_transactions(
        [&](const PGTransaction::ObjectOperation::Init::None &) {},
        [&](const PGTransaction::ObjectOperation::Init::Create &op) {
          for (auto &&st: *transactions) {
-           if (require_osd_release >= ceph_release_t::nautilus) {
+           if (require_osd_release >= ceph_release_t::octopus) {
              st.second.create(
                coll_t(spg_t(pgid, st.first)),
                ghobject_t(oid, ghobject_t::NO_GEN, st.first));
index 31e0af78d4ea58d92141e0bd2998ad2f0215c4d0..b90b1a81ca0cff3d0c1448bf61af21e00c39aa7f 100644 (file)
@@ -324,7 +324,7 @@ void generate_transaction(
        [&](const PGTransaction::ObjectOperation::Init::None &) {
        },
        [&](const PGTransaction::ObjectOperation::Init::Create &op) {
-         if (require_osd_release >= ceph_release_t::nautilus) {
+         if (require_osd_release >= ceph_release_t::octopus) {
            t->create(coll, goid);
          } else {
            t->touch(coll, goid);