Fix NaN during PG optimisation if there are nonexisting OSDs in node_placement

Vitaliy Filippov 2023-05-17 01:20:30 +03:00
parent 120e3fa7bc
commit 022176aa98
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ class Mon
}
for (const node_id in tree)
{
if (node_id === '')
if (node_id === '' || tree[node_id].level === 'osd' && (!tree[node_id].size || tree[node_id].size <= 0))
{
continue;
}