From 022176aa9802af38df6037fcdff1ec25c652557a Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 17 May 2023 01:20:30 +0300 Subject: [PATCH] Fix NaN during PG optimisation if there are nonexisting OSDs in node_placement --- mon/mon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mon/mon.js b/mon/mon.js index 5de358e2..02ced4b3 100644 --- a/mon/mon.js +++ b/mon/mon.js @@ -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; }