storage_service: Wait for schedule_schema_pull

It returns a future, we should not ignore it.
This commit is contained in:
Asias He
2015-08-10 10:26:27 +08:00
parent 1291344e68
commit 7fcaca56bd

View File

@@ -650,12 +650,12 @@ void storage_service::on_join(gms::inet_address endpoint, gms::endpoint_state ep
for (auto e : ep_state.get_application_state_map()) {
on_change(endpoint, e.first, e.second);
}
get_local_migration_manager().schedule_schema_pull(endpoint, ep_state);
get_local_migration_manager().schedule_schema_pull(endpoint, ep_state).get();
}
void storage_service::on_alive(gms::inet_address endpoint, gms::endpoint_state state) {
logger.debug("on_alive endpoint={}", endpoint);
get_local_migration_manager().schedule_schema_pull(endpoint, state);
get_local_migration_manager().schedule_schema_pull(endpoint, state).get();
if (_token_metadata.is_member(endpoint)) {
#if 0
HintedHandOffManager.instance.scheduleHintDelivery(endpoint, true);
@@ -702,7 +702,7 @@ void storage_service::on_change(inet_address endpoint, application_state state,
}
do_update_system_peers_table(endpoint, state, value);
if (state == application_state::SCHEMA) {
get_local_migration_manager().schedule_schema_pull(endpoint, *ep_state);
get_local_migration_manager().schedule_schema_pull(endpoint, *ep_state).get();
}
}
replicate_to_all_cores().get();