Deduplicate osd_sets in pg history + raise request size limit for etcd

This commit is contained in:
Vitaliy Filippov
2021-04-03 00:53:28 +03:00
parent 3a40fa4127
commit df99e232ee
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -692,6 +692,11 @@ class Mon
pg_history[i].osd_sets = pg_history[i].osd_sets || [];
pg_history[i].osd_sets.push(prev_pgs[i]);
}
if (pg_history[i] && pg_history[i].osd_sets)
{
pg_history[i].osd_sets = Object.values(pg_history[i].osd_sets
.reduce((a, c) => { a[c.join(' ')] = c; return a; }, {}));
}
});
for (let i = 0; i < new_pgs.length || i < prev_pgs.length; i++)
{