fix: do not use resolution class when using regions

This commit is contained in:
Evan Tschannen 2018-04-11 21:22:53 -07:00
parent 4248fbec61
commit c6229e443c
1 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,7 @@ void setupSimulatedSystem( vector<Future<Void>> *systemActors, std::string baseF
if(assignClasses) {
if(assignedMachines < 4)
processClass = ProcessClass((ProcessClass::ClassType) g_random->randomInt(0, 2), ProcessClass::CommandLineSource); //Unset or Storage
else if(assignedMachines == 4 && !g_simulator.hasRemoteReplication && !g_simulator.hasSatelliteReplication)
else if(assignedMachines == 4 && !simconfig.db.regions.size())
processClass = ProcessClass((ProcessClass::ClassType) (g_random->randomInt(0, 2) * ProcessClass::ResolutionClass), ProcessClass::CommandLineSource); //Unset or Resolution
else
processClass = ProcessClass((ProcessClass::ClassType) g_random->randomInt(0, 3), ProcessClass::CommandLineSource); //Unset, Storage, or Transaction