add StartTrace and EndTrace to stackable_db (#7585)

Summary:
In addition to trace block cache access, we want to support trace queries on MySQL. To achieve that StartTrace and EndTrace need to be added to the stackable_db.h

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7585

Reviewed By: zhichao-cao

Differential Revision: D24482306

Pulled By: nmjnmjnmj

fbshipit-source-id: de641b4837c64cd33b44b5bebaeae5d1527c8c31
This commit is contained in:
jmn 2020-10-22 17:30:11 -07:00 committed by Facebook GitHub Bot
parent d8ec0a760a
commit b1cdb8cc86

View file

@ -376,6 +376,15 @@ class StackableDB : public DB {
using DB::EndIOTrace;
Status EndIOTrace() override { return db_->EndIOTrace(); }
using DB::StartTrace;
Status StartTrace(const TraceOptions& options,
std::unique_ptr<TraceWriter>&& trace_writer) override {
return db_->StartTrace(options, std::move(trace_writer));
}
using DB::EndTrace;
Status EndTrace() override { return db_->EndTrace(); }
#endif // ROCKSDB_LITE
virtual Status GetLiveFiles(std::vector<std::string>& vec, uint64_t* mfs,