Fix description override for SubmitBackup and RestoreBackup workloads

This commit is contained in:
sfc-gh-tclinkenbeard 2020-10-17 12:24:00 -07:00
parent c1d88b39ab
commit 73f7888c21
2 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@
#include "fdbserver/workloads/workloads.actor.h"
#include "flow/actorcompiler.h" // This must be the last #include.
struct RestoreBackupWorkload : TestWorkload {
struct RestoreBackupWorkload final : TestWorkload {
FileBackupAgent backupAgent;
Reference<IBackupContainer> backupContainer;
@ -107,11 +107,11 @@ struct RestoreBackupWorkload : TestWorkload {
return Void();
}
std::string description() override { return DESCRIPTION; }
std::string description() const override { return DESCRIPTION; }
Future<Void> setup(Database const& cx) override { return Void(); }
Future<Void> start(Database const& cx) override { return clientId ? Void() : _start(this, cx); }
Future<bool> check(Database const& cx) override { return true; }
void getMetrics(vector<PerfMetric>& m) {}
void getMetrics(vector<PerfMetric>& m) override {}
};
WorkloadFactory<RestoreBackupWorkload> RestoreBackupWorkloadFactory(RestoreBackupWorkload::DESCRIPTION);

View File

@ -26,7 +26,7 @@
#include "fdbserver/workloads/workloads.actor.h"
#include "flow/actorcompiler.h" // This must be the last #include.
struct SubmitBackupWorkload : TestWorkload {
struct SubmitBackupWorkload final : TestWorkload {
FileBackupAgent backupAgent;
@ -64,11 +64,11 @@ struct SubmitBackupWorkload : TestWorkload {
return Void();
}
std::string description() override { return DESCRIPTION; }
std::string description() const override { return DESCRIPTION; }
Future<Void> setup(Database const& cx) override { return Void(); }
Future<Void> start(Database const& cx) override { return clientId ? Void() : _start(this, cx); }
Future<bool> check(Database const& cx) override { return true; }
void getMetrics(vector<PerfMetric>& m) {}
void getMetrics(vector<PerfMetric>& m) override {}
};
WorkloadFactory<SubmitBackupWorkload> SubmitBackupWorkloadFactory(SubmitBackupWorkload::DESCRIPTION);