Browse Source

Do not handle change events before loading config

Vitaliy Filippov 11 months ago
parent
commit
70612e5df0
  1. 7
      osd_cluster.cpp

7
osd_cluster.cpp

@ -223,8 +223,11 @@ void osd_t::on_change_osd_state_hook(osd_num_t peer_osd)
void osd_t::on_change_etcd_state_hook(json11::Json::object & changes)
{
// FIXME apply config changes in runtime (maybe, some)
apply_pg_count();
apply_pg_config();
if (run_primary && !(peering_state & OSD_LOADING_PGS))
{
apply_pg_count();
apply_pg_config();
}
}
void osd_t::on_change_pg_history_hook(pool_id_t pool_id, pg_num_t pg_num)

Loading…
Cancel
Save