Do not recheck primary distribution when pool has no PGs
parent
765befa22f
commit
a7b7354f38
|
@ -1545,6 +1545,10 @@ class Mon
|
||||||
this.reset_rng();
|
this.reset_rng();
|
||||||
for (let pg_num = 1; pg_num <= pool_cfg.pg_count; pg_num++)
|
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];
|
const pg_cfg = this.state.config.pgs.items[pool_id][pg_num];
|
||||||
if (pg_cfg)
|
if (pg_cfg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue