set allowLogSetKills to false in configurations that could not kill log sets anyways to prevent unnecessary reconfiguration

This commit is contained in:
Evan Tschannen 2018-07-09 22:24:43 -07:00
parent 6d76ff67a3
commit 6c6eaedf09
1 changed files with 4 additions and 0 deletions

View File

@ -1006,6 +1006,10 @@ void setupSimulatedSystem( vector<Future<Void>> *systemActors, std::string baseF
}
}
if(g_simulator.usableRegions < 2 || !g_simulator.hasSatelliteReplication) {
g_simulator.allowLogSetKills = false;
}
ASSERT(g_simulator.storagePolicy && g_simulator.tLogPolicy);
ASSERT(!g_simulator.hasSatelliteReplication || g_simulator.satelliteTLogPolicy);
TraceEvent("SimulatorConfig").detail("ConfigString", printable(StringRef(startingConfigString)));