Fix a problem caused by missing state.

This commit is contained in:
Renxuan Wang 2022-06-27 18:02:52 -07:00 committed by Jingyu Zhou
parent d1b085141d
commit 4452e53342
1 changed files with 1 additions and 1 deletions

View File

@ -7015,7 +7015,7 @@ ACTOR Future<ProtocolVersion> getClusterProtocolImpl(
} else {
state NetworkAddress coordinatorAddress;
if (coordinator->get().get().hostname.present()) {
Hostname h = coordinator->get().get().hostname.get();
state Hostname h = coordinator->get().get().hostname.get();
wait(store(coordinatorAddress, h.resolveWithRetry()));
} else {
coordinatorAddress = coordinator->get().get().getLeader.getEndpoint().getPrimaryAddress();