Replace the wrong usage of g_simulator in the snapshot code (#10984)

This commit is contained in:
Chaoguang Lin 2023-10-13 18:31:17 -07:00 committed by GitHub
parent b0569f8717
commit d24d9e6e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1550,7 +1550,7 @@ ACTOR Future<Void> ddSnapCreateCore(DistributorSnapRequest snapReq, Reference<As
// Consequently, we ignore it in simulation tests // Consequently, we ignore it in simulation tests
auto const coordFaultTolerance = std::min<int>( auto const coordFaultTolerance = std::min<int>(
std::max<int>(0, (coordSnapReqs.size() - 1) / 2), std::max<int>(0, (coordSnapReqs.size() - 1) / 2),
g_simulator->isSimulated() ? coordSnapReqs.size() : SERVER_KNOBS->MAX_COORDINATOR_SNAPSHOT_FAULT_TOLERANCE); g_network->isSimulated() ? coordSnapReqs.size() : SERVER_KNOBS->MAX_COORDINATOR_SNAPSHOT_FAULT_TOLERANCE);
wait(waitForMost(coordSnapReqs, coordFaultTolerance, snap_coord_failed())); wait(waitForMost(coordSnapReqs, coordFaultTolerance, snap_coord_failed()));
TraceEvent("SnapDataDistributor_AfterSnapCoords") TraceEvent("SnapDataDistributor_AfterSnapCoords")