Add TryCatchUpWithPrimary to StackableDB (#5855)

Summary:
as title.

Test Plan (on devserver):
```
$make all && make check
```
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5855

Differential Revision: D17615125

Pulled By: riversand963

fbshipit-source-id: bd6ed8cf59eafff41f0d1fc044f39e8f3573172a
This commit is contained in:
Yanqin Jin 2019-09-26 16:59:06 -07:00 committed by Facebook Github Bot
parent 76e951dbb1
commit ae45835703
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@
* The MemTable Bloom filter, when enabled, now always uses cache locality. Options::bloom_locality now only affects the PlainTable SST format.
* Deprecate `snap_refresh_nanos` option.
* Added DisableManualCompaction/EnableManualCompaction to stop and resume manual compaction.
* Add TryCatchUpWithPrimary() to StackableDB in non-LITE mode.
### Performance Improvements
* Improve the speed of the MemTable Bloom filter, reducing the write overhead of enabling it by 1/3 to 1/2, with similar benefit to read performance.

View File

@ -442,6 +442,12 @@ class StackableDB : public DB {
return db_->DefaultColumnFamily();
}
#ifndef ROCKSDB_LITE
Status TryCatchUpWithPrimary() override {
return db_->TryCatchUpWithPrimary();
}
#endif // ROCKSDB_LITE
protected:
DB* db_;
std::shared_ptr<DB> shared_db_ptr_;