Fix monitor incorrectly changing PG count when last_clean_pgs contains less PGs than the new number

This commit is contained in:
Vitaliy Filippov
2023-05-08 20:39:20 +03:00
parent cfcf4f4355
commit 321cb435a6
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1235,7 +1235,7 @@ class Mon
return;
}
const new_pg_history = [];
PGUtil.scale_pg_count(prev_pgs, pg_history, new_pg_history, pool_cfg.pg_count);
PGUtil.scale_pg_count(prev_pgs, real_prev_pgs, pg_history, new_pg_history, pool_cfg.pg_count);
pg_history = new_pg_history;
}
for (const pg of prev_pgs)