Update fdbserver/worker.actor.cpp

Remove unnecessary errorOr actor when testing SW version compatibility

Co-authored-by: Trevor Clinkenbeard <trevor.clinkenbeard@snowflake.com>
This commit is contained in:
Bharadwaj V.R 2022-04-12 10:22:35 -07:00 committed by GitHub
parent ebb0c45b0f
commit 5d103d5f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -3211,10 +3211,7 @@ ACTOR Future<Void> fdbd(Reference<IClusterConnectionRecord> connRecord,
localities.set(LocalityData::keyProcessId, processIDUid.toString());
// Only one process can execute on a dataFolder from this point onwards
ErrorOr<Void> f = wait(errorOr(testAndUpdateSoftwareVersionCompatibility(dataFolder, processIDUid)));
if (f.isError()) {
throw f.getError();
}
wait(testAndUpdateSoftwareVersionCompatibility(dataFolder, processIDUid));
std::string fitnessFilePath = joinPath(dataFolder, "fitness");
auto cc = makeReference<AsyncVar<Optional<ClusterControllerFullInterface>>>();