diff --git a/db/write_controller.h b/db/write_controller.h index 4ed221df1..32e1d58f1 100644 --- a/db/write_controller.h +++ b/db/write_controller.h @@ -47,7 +47,7 @@ class WriteControllerToken { public: explicit WriteControllerToken(WriteController* controller) : controller_(controller) {} - virtual ~WriteControllerToken() = default; + virtual ~WriteControllerToken() {} protected: WriteController* controller_; @@ -62,14 +62,14 @@ class StopWriteToken : public WriteControllerToken { public: explicit StopWriteToken(WriteController* controller) : WriteControllerToken(controller) {} - ~StopWriteToken(); + virtual ~StopWriteToken(); }; class DelayWriteToken : public WriteControllerToken { public: DelayWriteToken(WriteController* controller, uint64_t delay_us) : WriteControllerToken(controller), delay_us_(delay_us) {} - ~DelayWriteToken(); + virtual ~DelayWriteToken(); private: uint64_t delay_us_;