From 3109aa7221950cb73332865dd719c4327013032b Mon Sep 17 00:00:00 2001 From: Chaoguang Lin Date: Thu, 15 Oct 2020 14:11:04 -0700 Subject: [PATCH] (Previous commit did not catch the change)Increase the probability to generate keys after \xff\xff to test special key framework code --- fdbserver/workloads/FuzzApiCorrectness.actor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdbserver/workloads/FuzzApiCorrectness.actor.cpp b/fdbserver/workloads/FuzzApiCorrectness.actor.cpp index 8589a31df6..7425ff0655 100644 --- a/fdbserver/workloads/FuzzApiCorrectness.actor.cpp +++ b/fdbserver/workloads/FuzzApiCorrectness.actor.cpp @@ -418,8 +418,8 @@ struct FuzzApiCorrectnessWorkload : TestWorkload { for (size_t j = 0; j < key_size; ++j) skey.append(1, (char) deterministicRandom()->randomInt(0, 256)); - // 10% of the time generating keys after \xff\xff to test special keys code - if (deterministicRandom()->random01() < 0.1) + // 15% (= 20% * 75%) of the time generating keys after \xff\xff to test special keys code + if (deterministicRandom()->random01() < 0.2) return Key(skey).withPrefix(specialKeys.begin); else return Key(skey);