From 9fc6244955fba45aa5cbd46dfa3cb76b4d137a78 Mon Sep 17 00:00:00 2001 From: Qiaolin Yu <90088090+Qiaolin-Yu@users.noreply.github.com> Date: Tue, 12 Jul 2022 19:43:49 +0800 Subject: [PATCH] Replace obsolete RocksDB API (#4395) Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> --- src/kvstore/RocksEngine.cpp | 2 +- src/kvstore/RocksEngine.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kvstore/RocksEngine.cpp b/src/kvstore/RocksEngine.cpp index acd740c3dd5..b00128bacc6 100644 --- a/src/kvstore/RocksEngine.cpp +++ b/src/kvstore/RocksEngine.cpp @@ -538,7 +538,7 @@ void RocksEngine::openBackupEngine(GraphSpaceID spaceId) { } } rocksdb::BackupEngine* backupDb; - rocksdb::BackupableDBOptions backupOptions(backupPath_); + rocksdb::BackupEngineOptions backupOptions(backupPath_); backupOptions.backup_log_files = false; auto status = rocksdb::BackupEngine::Open(rocksdb::Env::Default(), backupOptions, &backupDb); CHECK(status.ok()) << status.ToString(); diff --git a/src/kvstore/RocksEngine.h b/src/kvstore/RocksEngine.h index 2de38333efe..17569163c8e 100644 --- a/src/kvstore/RocksEngine.h +++ b/src/kvstore/RocksEngine.h @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include "common/base/Base.h"