set flag to true when doing first registration
This commit is contained in:
parent
00f4bd8536
commit
2887e1c30a
|
@ -534,6 +534,7 @@ ACTOR Future<Void> registrationClient(Reference<AsyncVar<Optional<ClusterControl
|
|||
state Future<Void> cacheProcessFuture;
|
||||
state Future<Void> cacheErrorsFuture;
|
||||
state Optional<double> incorrectTime;
|
||||
state bool firstReg = true;
|
||||
loop {
|
||||
state ClusterConnectionString storedConnectionString;
|
||||
state bool upToDate = true;
|
||||
|
@ -588,6 +589,10 @@ ACTOR Future<Void> registrationClient(Reference<AsyncVar<Optional<ClusterControl
|
|||
state bool ccInterfacePresent = ccInterface->get().present();
|
||||
if (ccInterfacePresent) {
|
||||
request.requestDbInfo = (ccInterface->get().get().id() != dbInfo->get().clusterInterface.id());
|
||||
if (firstReg) {
|
||||
request.requestDbInfo = true;
|
||||
firstReg = false;
|
||||
}
|
||||
}
|
||||
state Future<RegisterWorkerReply> registrationReply =
|
||||
ccInterfacePresent ? brokenPromiseToNever(ccInterface->get().get().registerWorker.getReply(request))
|
||||
|
|
Loading…
Reference in New Issue