Fix online PG count change, add a test for it

This commit is contained in:
Vitaliy Filippov
2025-07-15 02:33:28 +03:00
parent 3fff667f13
commit 68905cbf41
6 changed files with 94 additions and 2 deletions
+4
View File
@@ -1056,6 +1056,10 @@ void etcd_state_client_t::parse_state(const etcd_kv_t & kv)
}
pool_item.second.real_pg_count = n;
}
if (on_change_pg_config_hook)
{
on_change_pg_config_hook();
}
}
else if (key.substr(0, etcd_prefix.length()+12) == etcd_prefix+"/pg/history/")
{