Skip to content

Commit d8a62ea

Browse files
authored
Merge pull request ceph#66323 from aainscow/pg_repeer
mon: ceph pg repeer should propose a correctly sized pg temp. Reviewed-by: Laura Flores <[email protected]>
2 parents 9c048a9 + a3cc500 commit d8a62ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mon/OSDMonitor.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12584,6 +12584,8 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
1258412584
goto reply_no_propose;
1258512585
}
1258612586
}
12587+
// Optimized EC does not cope with pg temp with a mismatched size.
12588+
pending_inc.new_pg_temp[pgid].resize(osdmap.get_pg_size(pgid), CRUSH_ITEM_NONE);
1258712589
goto update;
1258812590
} else if (prefix == "osd pg-upmap" ||
1258912591
prefix == "osd rm-pg-upmap" ||

0 commit comments

Comments
 (0)