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