mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
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:
parent
d8ec0a760a
commit
b1cdb8cc86
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue