Skip to content

Commit 353eaff

Browse files
authored
Merge pull request ceph#64009 from rzarzynski/wip-bug-70869
osd: prevent OSDMap::check_health() from asserting due to new OSDs found in subtree Reviewed-by: Ronen Friedman <[email protected]> Reviewed-by: Josh Durgin <[email protected]>
2 parents ef04e24 + 78cf89c commit 353eaff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osd/OSDMap.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ bool OSDMap::subtree_type_is_down(
374374
{
375375
if (id >= 0) {
376376
bool is_down_ret = is_down(id);
377-
if (!is_out(id)) {
377+
if (!is_out(id) && !(osd_state[id] & CEPH_OSD_NEW)) {
378378
if (is_down_ret) {
379379
down_in_osds->insert(id);
380380
} else {

0 commit comments

Comments
 (0)