storage_service: Enable commented out in on_restart

on_dead is now available.
This commit is contained in:
Asias He
2015-11-05 17:27:52 +08:00
parent 1ab1a1d8d9
commit 145c122cb7

View File

@@ -752,11 +752,10 @@ void storage_service::on_dead(gms::inet_address endpoint, gms::endpoint_state st
void storage_service::on_restart(gms::inet_address endpoint, gms::endpoint_state state) {
logger.debug("on_restart endpoint={}", endpoint);
#if 0
// If we have restarted before the node was even marked down, we need to reset the connection pool
if (state.isAlive())
onDead(endpoint, state);
#endif
if (state.is_alive()) {
on_dead(endpoint, state);
}
}
// Runs inside seastar::async context