throwException("Quorum for previous write has not been satisfied yet. Status: "+quorum_status,ErrorCodes::UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE);
autoquorum_status=quorum_status_future.get();
if(quorum_status.exists)
throwException("Quorum for previous write has not been satisfied yet. Status: "+quorum_status.value,ErrorCodes::UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE);
/// Обе проверки неявно делаются и позже (иначе был бы race condition).
autois_active=is_active_future.get();
autohost=host_future.get();
if(!is_active.exists||!host.exists)
throwException("Replica is not active right now",ErrorCodes::READONLY);