Skip to content

Commit

Permalink
Only enable bit flip when accumulative checksum is on
Browse files Browse the repository at this point in the history
  • Loading branch information
jzhou77 committed Apr 9, 2024
1 parent 047bd9c commit 9abda60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fdbserver/workloads/BitFlip.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* limitations under the License.
*/

#include "fdbclient/Knobs.h"
#include "fdbrpc/simulator.h"
#include "fdbserver/TesterInterface.actor.h"
#include "fdbserver/QuietDatabase.h"
Expand Down Expand Up @@ -45,7 +46,8 @@ struct BitFlipWorkload : FailureInjectionWorkload {

BitFlipWorkload(WorkloadContext const& wcx) : FailureInjectionWorkload(wcx) {
// only do this on the "first" client in simulation
enabled = !clientId && g_network->isSimulated();
enabled = !clientId && g_network->isSimulated() && CLIENT_KNOBS->ENABLE_ACCUMULATIVE_CHECKSUM &&
CLIENT_KNOBS->ENABLE_MUTATION_CHECKSUM;
initialDelay = getOption(options, "initialDelay"_sr, 0.0);
duration = getOption(options, "testDuration"_sr, 20.0);
}
Expand Down

0 comments on commit 9abda60

Please sign in to comment.