Skip to content

Commit

Permalink
Replace obsolete RocksDB API (#4395)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie <[email protected]>
  • Loading branch information
Qiaolin-Yu and Sophie-Xie committed Sep 8, 2022
1 parent 57f048c commit 9fc6244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kvstore/RocksEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/kvstore/RocksEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <gtest/gtest_prod.h>
#include <rocksdb/db.h>
#include <rocksdb/utilities/backupable_db.h>
#include <rocksdb/utilities/backup_engine.h>
#include <rocksdb/utilities/checkpoint.h>

#include "common/base/Base.h"
Expand Down

0 comments on commit 9fc6244

Please sign in to comment.