Fix Windows CMake build

This commit is contained in:
sfc-gh-tclinkenbeard 2020-10-07 11:46:23 -07:00
parent 7f0d14c8e4
commit 012886a8d8
5 changed files with 9 additions and 9 deletions

View File

@ -289,7 +289,7 @@ struct CompoundWorkload : TestWorkload {
m.push_back( p[i].withPrefix( workloads[w]->description()+"." ) );
}
}
double getCheckTimeout() override {
double getCheckTimeout() const override {
double m = 0;
for(int w=0; w<workloads.size(); w++)
m = std::max( workloads[w]->getCheckTimeout(), m );

View File

@ -55,7 +55,7 @@ ACTOR Future<Void> setup(Database cx, ApiWorkload *self) {
return Void();
}
Future<Void> ApiWorkload::setup(Database const& cx) override {
Future<Void> ApiWorkload::setup(Database const& cx) {
if(clientId < maxClients || maxClients < 0)
return ::setup(cx, this);
@ -82,7 +82,7 @@ ACTOR Future<Void> start(Database cx, ApiWorkload *self) {
return Void();
}
Future<Void> ApiWorkload::start(Database const& cx) override {
Future<Void> ApiWorkload::start(Database const& cx) {
if(clientId < maxClients || maxClients < 0)
return ::start(cx, this);
@ -99,7 +99,7 @@ void ApiWorkload::testFailure(std::string reason)
success = false;
}
Future<bool> ApiWorkload::check(Database const& cx) override {
Future<bool> ApiWorkload::check(Database const& cx) {
return success;
}

View File

@ -285,9 +285,9 @@ struct ApiWorkload : TestWorkload {
}
}
Future<Void> setup(Database const& cx);
Future<Void> start(Database const& cx);
Future<bool> check(Database const& cx);
Future<Void> setup(Database const& cx) override;
Future<Void> start(Database const& cx) override;
Future<bool> check(Database const& cx) override;
//Compares the contents of this client's key-space in the database with the in-memory key-value store
Future<bool> compareDatabaseToMemory();

View File

@ -87,7 +87,7 @@ struct InventoryTestWorkload : TestWorkload {
transactions.getValue() * 2 * fractionWriteTransactions / testDuration, true ) );
}
Key chooseProduct() override {
Key chooseProduct() const {
int p = deterministicRandom()->randomInt(0,nProducts);
return doubleToTestKey( (double)p / nProducts );
//std::string s = std::string(1,'a' + (p%26)) + format("%d",p/26);

View File

@ -83,7 +83,7 @@ struct ReportConflictingKeysWorkload : TestWorkload {
}
// disable the default timeout setting
double getCheckTimeout() override { return std::numeric_limits<double>::max(); }
double getCheckTimeout() const override { return std::numeric_limits<double>::max(); }
// Copied from tester.actor.cpp, added parameter to determine the key's length
Key keyForIndex(int n) {