]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: ceph pg repeer should propose a correctly sized pg temp. 66323/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Wed, 19 Nov 2025 11:32:14 +0000 (11:32 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 19 Nov 2025 17:38:17 +0000 (17:38 +0000)
Fixes: https://tracker.ceph.com/issues/73897
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/mon/OSDMonitor.cc

index 29ceebe21061cdf3d446dac4927e7a8004c3791d..2bc5cc100e5c278c9681fa45ebd6ad59cdafc0be 100644 (file)
@@ -12584,6 +12584,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
        goto reply_no_propose;
       }
     }
+    // Optimized EC does not cope with pg temp with a mismatched size.
+    pending_inc.new_pg_temp[pgid].resize(osdmap.get_pg_size(pgid), CRUSH_ITEM_NONE);
     goto update;
   } else if (prefix == "osd pg-upmap" ||
              prefix == "osd rm-pg-upmap" ||