Do not handle change events before loading config
parent
d952c24979
commit
70612e5df0
|
@ -223,9 +223,12 @@ 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)
|
void osd_t::on_change_etcd_state_hook(json11::Json::object & changes)
|
||||||
{
|
{
|
||||||
// FIXME apply config changes in runtime (maybe, some)
|
// FIXME apply config changes in runtime (maybe, some)
|
||||||
|
if (run_primary && !(peering_state & OSD_LOADING_PGS))
|
||||||
|
{
|
||||||
apply_pg_count();
|
apply_pg_count();
|
||||||
apply_pg_config();
|
apply_pg_config();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void osd_t::on_change_pg_history_hook(pool_id_t pool_id, pg_num_t pg_num)
|
void osd_t::on_change_pg_history_hook(pool_id_t pool_id, pg_num_t pg_num)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue