]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Remove octopus-depending code in Fast EC
authorAlex Ainscow <aainscow@uk.ibm.com>
Tue, 9 Dec 2025 13:19:22 +0000 (13:19 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 25 Mar 2026 16:53:04 +0000 (16:53 +0000)
We are leaving alone legacy EC

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/osd/ECTransaction.cc

index f25eab6a6dbaebf494ec35bbd5ef42f9f049b3f9..fedda8ca49328dd75b75d2ec382388f288ae3488 100644 (file)
@@ -393,15 +393,9 @@ void ECTransaction::Generate::process_init() {
     [&](const PGTransaction::ObjectOperation::Init::Create &_) {
       all_shards_written();
       for (auto &&[shard, t]: transactions) {
-        if (osdmap->require_osd_release >= ceph_release_t::octopus) {
-          t.create(
-            coll_t(spg_t(pgid, shard)),
-            ghobject_t(oid, ghobject_t::NO_GEN, shard));
-        } else {
-          t.touch(
-            coll_t(spg_t(pgid, shard)),
-            ghobject_t(oid, ghobject_t::NO_GEN, shard));
-        }
+        t.create(
+          coll_t(spg_t(pgid, shard)),
+          ghobject_t(oid, ghobject_t::NO_GEN, shard));
       }
     },
     [&](const PGTransaction::ObjectOperation::Init::Clone &cop) {