]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Call clear_repop_obc for EC as well as Replica.
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 3 Oct 2025 13:51:23 +0000 (14:51 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 14 Oct 2025 10:42:14 +0000 (11:42 +0100)
This function is necessary for balanced reads and as such is required for EC too.

Rename the function to make sense, given this change of purpose, but the
functionality does not change.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h

index 09ad5f1946d73d5385117eb17da35cedca089d36..6154ba1ff3a2936349a1c49e546ffccf56795022 100644 (file)
@@ -1377,7 +1377,7 @@ void PG::log_operation(
 
   if (!is_primary()) { // && !is_ec_pg()
     DEBUGDPP("on replica, clearing obc", *this);
-    replica_clear_repop_obc(logv);
+    clear_repop_obc(logv);
   }
   if (!logv.empty()) {
     scrubber.on_log_update(logv.rbegin()->version);
@@ -1391,9 +1391,9 @@ void PG::log_operation(
                            false);
 }
 
-void PG::replica_clear_repop_obc(
+void PG::clear_repop_obc(
   const std::vector<pg_log_entry_t> &logv) {
-  LOG_PREFIX(PG::replica_clear_repop_obc);
+  LOG_PREFIX(PG::clear_repop_obc);
   DEBUGDPP("clearing obc for {} log entries", *this, logv.size());
   for (auto &&e: logv) {
     DEBUGDPP("clearing entry for {} from: {} to: {}",
index 9db370a8887ffb6c64aef6bc5856989c3acc0356..b13299f94a1b0770fc8414b966f703abc6f55469 100644 (file)
@@ -675,7 +675,7 @@ public:
     bool transaction_applied,
     ObjectStore::Transaction &txn,
     bool async = false);
-  void replica_clear_repop_obc(
+  void clear_repop_obc(
     const std::vector<pg_log_entry_t> &logv);
   void handle_rep_op_reply(const MOSDRepOpReply& m);
   interruptible_future<> do_update_log_missing(
index 3e5de805cdfb4be4565fba97b0a016efd53c6d53..2df144fcfd02d4c336371ff852f4be18525c54d0 100644 (file)
@@ -552,7 +552,7 @@ common::intrusive_timer &PrimaryLogPG::get_pg_timer()
   return osd->pg_timer;
 }
 
-void PrimaryLogPG::replica_clear_repop_obc(
+void PrimaryLogPG::clear_repop_obc(
   const vector<pg_log_entry_t> &logv,
   ObjectStore::Transaction &t)
 {
index 15d50b1e2ee02caacc6933ba6a3b5753de5acfac..2c3d5c553f54c6a1df26d81ec59735bceb02957f 100644 (file)
@@ -535,15 +535,15 @@ public:
       projected_log.skip_can_rollback_to_to_head();
       projected_log.trim(cct, last->version, nullptr, nullptr, nullptr);
     }
-    if (!is_primary() && !is_ec_pg()) {
-      replica_clear_repop_obc(logv, t);
+    if (!is_primary()) {
+      clear_repop_obc(logv, t);
     }
     recovery_state.append_log(
       std::move(logv), trim_to, roll_forward_to, pg_committed_to,
       t, transaction_applied, async);
   }
 
-  void replica_clear_repop_obc(
+  void clear_repop_obc(
     const std::vector<pg_log_entry_t> &logv,
     ObjectStore::Transaction &t);