Fix a problem caused by missing state.
This commit is contained in:
parent
d1b085141d
commit
4452e53342
|
@ -7015,7 +7015,7 @@ ACTOR Future<ProtocolVersion> getClusterProtocolImpl(
|
||||||
} else {
|
} else {
|
||||||
state NetworkAddress coordinatorAddress;
|
state NetworkAddress coordinatorAddress;
|
||||||
if (coordinator->get().get().hostname.present()) {
|
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()));
|
wait(store(coordinatorAddress, h.resolveWithRetry()));
|
||||||
} else {
|
} else {
|
||||||
coordinatorAddress = coordinator->get().get().getLeader.getEndpoint().getPrimaryAddress();
|
coordinatorAddress = coordinator->get().get().getLeader.getEndpoint().getPrimaryAddress();
|
||||||
|
|
Loading…
Reference in New Issue