This commit is contained in:
parent
fc9624e996
commit
ab07d7e192
@ -288,9 +288,9 @@ auto rdb_file_mgr_db::rename_resume(const std::string &from_api_path,
|
||||
auto res = perform_action(
|
||||
function_name,
|
||||
[this, &from_api_path, ¬_found, &value]() -> rocksdb::Status {
|
||||
auto res = db_->Get(rocksdb::ReadOptions{}, from_api_path, &value);
|
||||
not_found = res.IsNotFound();
|
||||
return res;
|
||||
auto result = db_->Get(rocksdb::ReadOptions{}, from_api_path, &value);
|
||||
not_found = result.IsNotFound();
|
||||
return result;
|
||||
});
|
||||
if (not_found) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user