mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 03:12:12 +08:00
adjusted range in picking random subset of excluded servers
This commit is contained in:
parent
202900bd79
commit
d6e0c460f1
@ -409,7 +409,7 @@ struct RemoveServersSafelyWorkload : TestWorkload {
|
||||
if (safeKillSet) {
|
||||
loop {
|
||||
state bool safe = false;
|
||||
auto failSet = random_subset(toKillArray, deterministicRandom()->randomInt(1, toKillArray.size()));
|
||||
auto failSet = random_subset(toKillArray, deterministicRandom()->randomInt(0, toKillArray.size() + 1));
|
||||
toKillMarkFailedArray.resize(failSet.size());
|
||||
std::copy(failSet.begin(), failSet.end(), toKillMarkFailedArray.begin());
|
||||
TraceEvent("RemoveAndKill", functionId)
|
||||
|
Loading…
x
Reference in New Issue
Block a user