Do not recheck primary distribution when pool has no PGs

Vitaliy Filippov 2024-04-19 15:23:31 +03:00
parent 821a1b4899
commit 4cb7dfbebc
1 changed files with 4 additions and 0 deletions

View File

@ -1545,6 +1545,10 @@ class Mon
this.reset_rng();
for (let pg_num = 1; pg_num <= pool_cfg.pg_count; pg_num++)
{
if (!this.state.config.pgs.items[pool_id])
{
continue;
}
const pg_cfg = this.state.config.pgs.items[pool_id][pg_num];
if (pg_cfg)
{