refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-12-22 07:32:09 -06:00
parent fc9624e996
commit ab07d7e192

View File

@ -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, &not_found, &value]() -> rocksdb::Status { [this, &from_api_path, &not_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;