add override keyword properly to squash compiler warnings

This commit is contained in:
Jon Fu 2021-01-25 13:24:15 -05:00
parent 311459f2a3
commit c3775ede37
3 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ class SpecialKeyRangeAsyncImpl : public SpecialKeyRangeReadImpl {
public:
explicit SpecialKeyRangeAsyncImpl(KeyRangeRef kr) : SpecialKeyRangeReadImpl(kr) {}
Future<Standalone<RangeResultRef>> getRange(ReadYourWritesTransaction* ryw, KeyRangeRef kr) const = 0;
Future<Standalone<RangeResultRef>> getRange(ReadYourWritesTransaction* ryw, KeyRangeRef kr) const override = 0;
// calling with a cache object to have consistent results if we need to call rpc
Future<Standalone<RangeResultRef>> getRange(ReadYourWritesTransaction* ryw, KeyRangeRef kr,

View File

@ -138,8 +138,8 @@ public:
class SimpleFailureMonitor : public IFailureMonitor {
public:
SimpleFailureMonitor();
void setStatus(NetworkAddress const& address, FailureStatus const& status);
void endpointNotFound(Endpoint const&);
void setStatus(NetworkAddress const& address, FailureStatus const& status) override;
void endpointNotFound(Endpoint const&) override;
void notifyDisconnect(NetworkAddress const&) override;
Future<Void> onStateChanged(Endpoint const& endpoint) override;

View File

@ -1046,7 +1046,7 @@ public:
void addref() override { ReferenceCounted<DynamicEventMetric>::addref(); }
void delref() override { ReferenceCounted<DynamicEventMetric>::delref(); }
void onEnable() {
void onEnable() override {
// Must initialize fields, previously knobs may not have been set.
// Note that future fields will be okay because the field constructor will init and the knobs will be set.
time.init();