Replace the wrong usage of g_simulator in the snapshot code (#10984)
This commit is contained in:
parent
b0569f8717
commit
d24d9e6e21
|
@ -1550,7 +1550,7 @@ ACTOR Future<Void> ddSnapCreateCore(DistributorSnapRequest snapReq, Reference<As
|
|||
// Consequently, we ignore it in simulation tests
|
||||
auto const coordFaultTolerance = std::min<int>(
|
||||
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()));
|
||||
|
||||
TraceEvent("SnapDataDistributor_AfterSnapCoords")
|
||||
|
|
Loading…
Reference in New Issue