From ae45835703c7f331064a6a6bced2d20b91aaccd0 Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Thu, 26 Sep 2019 16:59:06 -0700 Subject: [PATCH] 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 --- HISTORY.md | 1 + include/rocksdb/utilities/stackable_db.h | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 772f4e64c..c1fa45ad4 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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. diff --git a/include/rocksdb/utilities/stackable_db.h b/include/rocksdb/utilities/stackable_db.h index 32202d7a0..e6618cf45 100644 --- a/include/rocksdb/utilities/stackable_db.h +++ b/include/rocksdb/utilities/stackable_db.h @@ -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 shared_db_ptr_;