This is an automated email from the ASF dual-hosted git repository.

hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new b3106ca  Replace obsolete RocksDB API (#780)
b3106ca is described below

commit b3106caaaf7f46bc0df451020f3e842d8c81e0a2
Author: Qiaolin Yu <[email protected]>
AuthorDate: Wed Aug 17 13:36:09 2022 +0800

    Replace obsolete RocksDB API (#780)
---
 src/redis_cmd.h | 2 +-
 src/storage.cc  | 2 +-
 src/storage.h   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/redis_cmd.h b/src/redis_cmd.h
index 8b54df2..db36709 100644
--- a/src/redis_cmd.h
+++ b/src/redis_cmd.h
@@ -32,7 +32,7 @@
 #include <event2/event.h>
 #include <glog/logging.h>
 #include <rocksdb/types.h>
-#include <rocksdb/utilities/backupable_db.h>
+#include <rocksdb/utilities/backup_engine.h>
 
 #include "redis_reply.h"
 #include "status.h"
diff --git a/src/storage.cc b/src/storage.cc
index b263a0d..8b1ebcd 100644
--- a/src/storage.cc
+++ b/src/storage.cc
@@ -379,7 +379,7 @@ Status Storage::DestroyBackup() {
 Status Storage::RestoreFromBackup() {
   // TODO(@ruoshan): assert role to be slave
   // We must reopen the backup engine every time, as the files is changed
-  rocksdb::BackupableDBOptions bk_option(config_->backup_sync_dir);
+  rocksdb::BackupEngineOptions bk_option(config_->backup_sync_dir);
   auto s = rocksdb::BackupEngine::Open(db_->GetEnv(), bk_option, &backup_);
   if (!s.ok()) return Status(Status::DBBackupErr, s.ToString());
 
diff --git a/src/storage.h b/src/storage.h
index 7527e1f..234fc69 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -29,7 +29,7 @@
 #include <rocksdb/db.h>
 #include <rocksdb/options.h>
 #include <rocksdb/table.h>
-#include <rocksdb/utilities/backupable_db.h>
+#include <rocksdb/utilities/backup_engine.h>
 #include <event2/bufferevent.h>
 
 #include "status.h"

Reply via email to