Add asserts for lp-optimizer tests, pass ordered from the monitor

This commit is contained in:
Vitaliy Filippov
2022-01-03 20:37:07 +03:00
parent 9c6168bf17
commit 68b6763ebe
5 changed files with 77 additions and 45 deletions
+1 -5
View File
@@ -1098,7 +1098,7 @@ class Mon
pg_size: pool_cfg.pg_size,
pg_minsize: pool_cfg.pg_minsize,
max_combinations: pool_cfg.max_osd_combinations,
round_robin: pool_cfg.scheme != 'replicated',
ordered: pool_cfg.scheme != 'replicated',
};
let optimize_result;
if (old_pg_count > 0)
@@ -1121,10 +1121,6 @@ class Mon
{
pg.push(0);
}
while (pg.length > pool_cfg.pg_size)
{
pg.pop();
}
}
if (!this.state.config.pgs.hash)
{