mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
DB::GetOptions()
Summary: We need access to options for BackupableDB Test Plan: make check Reviewers: dhruba Reviewed By: dhruba CC: leveldb, reconnect.grayhat Differential Revision: https://reviews.facebook.net/D14331
This commit is contained in:
@@ -231,6 +231,9 @@ class DB {
|
||||
// Get Env object from the DB
|
||||
virtual Env* GetEnv() const = 0;
|
||||
|
||||
// Get DB Options that we use
|
||||
virtual const Options& GetOptions() const = 0;
|
||||
|
||||
// Flush all mem-table data.
|
||||
virtual Status Flush(const FlushOptions& options) = 0;
|
||||
|
||||
|
||||
@@ -107,6 +107,10 @@ class StackableDB : public DB {
|
||||
return db_->GetEnv();
|
||||
}
|
||||
|
||||
virtual const Options& GetOptions() const override {
|
||||
return db_->GetOptions();
|
||||
}
|
||||
|
||||
virtual Status Flush(const FlushOptions& fopts) override {
|
||||
return db_->Flush(fopts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user