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

This commit is contained in:
Vitaliy Filippov
2023-05-17 01:20:30 +03:00
parent 120e3fa7bc
commit 022176aa98
+1 -1
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;
}