Fix description override for SubmitBackup and RestoreBackup workloads
This commit is contained in:
parent
c1d88b39ab
commit
73f7888c21
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue