]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Minor tidy up in PrimaryLogPG
authorAlex Ainscow <aainscow@uk.ibm.com>
Thu, 5 Feb 2026 15:21:20 +0000 (15:21 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Fri, 6 Feb 2026 10:31:55 +0000 (10:31 +0000)
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/osd/PrimaryLogPG.cc

index 4fcb9af69a9499bd60f889e9023db345309bf5dc..48ea7c53066fa9bbb1fd2b4e31c70a2a06fdb94f 100644 (file)
@@ -2058,13 +2058,14 @@ void PrimaryLogPG::do_op(OpRequestRef& op)
 
   // check for op with rwordered and rebalance or localize reads
   if (m->has_flag(CEPH_OSD_FLAGS_DIRECT_READ) && op->rwordered()) {
-    dout(4) << __func__ << ": rebelance or localized reads with rwordered not allowed "
+    dout(4) << __func__ << ": rebalance or localized reads with rwordered not allowed "
        << *m << dendl;
     osd->reply_op_error(op, -EINVAL);
     return;
   }
 
   if (m->get_flags() & CEPH_OSD_FLAG_EC_DIRECT_READ) {
+    // This means "is in acting set"
     if (is_primary() || is_nonprimary()) {
       op->set_ec_direct_read();
     } else {
@@ -2076,6 +2077,7 @@ void PrimaryLogPG::do_op(OpRequestRef& op)
       op->may_read() &&
       !(op->may_write() || op->may_cache())) {
     // balanced reads; any replica will do
+    // This means "is in acting set"
     if (!(is_primary() || is_nonprimary())) {
       osd->handle_misdirected_op(this, op);
       return;