From a7b7354f38d00c3cb76d882ad8c9b8f151b1a669 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 20 Apr 2024 02:02:47 +0300 Subject: [PATCH] Do not recheck primary distribution when pool has no PGs --- mon/mon.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mon/mon.js b/mon/mon.js index 56f2c948..6903fe24 100644 --- a/mon/mon.js +++ b/mon/mon.js @@ -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) {