Do not print "-X offline" in status when changing pool PG count, print it in df instead

This commit is contained in:
Vitaliy Filippov
2023-11-04 13:12:13 +03:00
parent 30dff8893f
commit 4d79e531c5
2 changed files with 7 additions and 8 deletions
+1 -6
View File
@@ -158,12 +158,7 @@ resume_2:
for (auto & pool_pair: parent->cli->st_cli.pool_config)
{
auto & pool_cfg = pool_pair.second;
bool active = true;
if (pool_cfg.pg_config.size() != pool_cfg.pg_count)
{
active = false;
pgs_by_state["offline"] += pool_cfg.pg_count-pool_cfg.pg_config.size();
}
bool active = pool_cfg.real_pg_count > 0;
pool_count++;
for (auto pg_it = pool_cfg.pg_config.begin(); pg_it != pool_cfg.pg_config.end(); pg_it++)
{