fix compilation issues

This commit is contained in:
Markus Pilman 2022-09-13 10:29:29 -06:00
parent 6e97bfb15a
commit 3e31820078
2 changed files with 2 additions and 2 deletions

View File

@ -437,7 +437,7 @@ bool FailureInjectionWorkload::add(DeterministicRandom& random,
[&desc](auto const& w) { return w->description() == desc; });
bool willAdd = work.useDatabase && 0.1 / (1 + alreadyAdded) > random.random01();
if (willAdd) {
initFailureInjectionMode(random);
initFailureInjectionMode(random, alreadyAdded);
}
return willAdd;
}

View File

@ -151,4 +151,4 @@ struct RandomCloggingWorkload : FailureInjectionWorkload {
};
WorkloadFactory<RandomCloggingWorkload> RandomCloggingWorkloadFactory("RandomClogging");
FailureInjectorFactory<RandomCloggingWorkload> MachineAttritionFailureWorkloadFactory;
FailureInjectorFactory<RandomCloggingWorkload> RandomCloggingFailureInjectionFactory;