From 37a6aff2fa9097c037f1fe8203742fe893e7799f Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 31 Dec 2022 02:31:48 +0300 Subject: [PATCH] Write OSD numbers always as numbers in mon --- mon/PGUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mon/PGUtil.js b/mon/PGUtil.js index cec27d79..99bc91c2 100644 --- a/mon/PGUtil.js +++ b/mon/PGUtil.js @@ -21,7 +21,7 @@ function add_pg_history(new_pg_history, new_pg, prev_pgs, prev_pg_history, old_p { for (const pg of oh.osd_sets) { - nh.osd_sets[pg.join(' ')] = pg; + nh.osd_sets[pg.join(' ')] = pg.map(osd_num => Number(osd_num)); } } if (oh && oh.all_peers && oh.all_peers.length)