Fix filtering in mon

antietcd
Vitaliy Filippov 2024-04-09 14:50:47 +03:00
parent dff4879c8c
commit 57bf84ddb2
1 changed files with 2 additions and 2 deletions

View File

@ -1197,7 +1197,7 @@ class Mon
{ {
return; return;
} }
pool_tree = pool_tree[pool_cfg.root_node]; pool_tree = pool_tree[root_node];
const cur = [ ...(pool_tree||{}).children||[] ]; const cur = [ ...(pool_tree||{}).children||[] ];
for (let i = 0; i < cur.length; i++) for (let i = 0; i < cur.length; i++)
{ {
@ -1240,7 +1240,7 @@ class Mon
osd_stat.immediate_commit == 'small' && immediate_commit == 'all' || osd_stat.immediate_commit == 'small' && immediate_commit == 'all' ||
osd_stat.immediate_commit == 'none' && immediate_commit != 'none')) osd_stat.immediate_commit == 'none' && immediate_commit != 'none'))
{ {
delete orig_tree[host][osd]; delete orig_tree[osd];
} }
} }
} }