diff --git a/fdbserver/workloads/Cycle.actor.cpp b/fdbserver/workloads/Cycle.actor.cpp index e622ffe4a3..62c80af294 100644 --- a/fdbserver/workloads/Cycle.actor.cpp +++ b/fdbserver/workloads/Cycle.actor.cpp @@ -28,6 +28,7 @@ struct CycleWorkload : TestWorkload { int actorCount, nodeCount; double testDuration, transactionsPerSecond, minExpectedTransactionsPerSecond; Key keyPrefix; + bool checkOnly; vector> clients; PerfIntCounter transactions, retries, tooOldRetries, commitFailedRetries; @@ -44,6 +45,7 @@ struct CycleWorkload : TestWorkload { nodeCount = getOption(options, LiteralStringRef("nodeCount"), transactionsPerSecond * clientCount); keyPrefix = getOption(options, LiteralStringRef("keyPrefix"), LiteralStringRef("")); minExpectedTransactionsPerSecond = transactionsPerSecond * getOption(options, LiteralStringRef("expectedRate"), 0.7); + checkOnly = getOption(options, LiteralStringRef("checkOnly"), false); } virtual std::string description() { return "CycleWorkload"; } @@ -51,6 +53,7 @@ struct CycleWorkload : TestWorkload { return bulkSetup( cx, this, nodeCount, Promise() ); } virtual Future start( Database const& cx ) { + if (checkOnly) return Void(); for(int c=0; c