RocksDB implementations should be transactional #24

This commit is contained in:
Scott E. Graves 2024-12-11 13:32:17 -06:00
parent 5187f32346
commit 85136c9af2
2 changed files with 4 additions and 3 deletions

View File

@ -15,6 +15,7 @@
* OS X support is temporarily disabled
* \#19 \[bug\] Rename file is broken for files that are existing
* \#23 \[bug\] Incorrect file size displayed while upload is pending
* \#24 RocksDB implementations should be transactional
### Changes from v2.0.1-rc

View File

@ -343,9 +343,9 @@ auto rdb_file_mgr_db::rename_resume(const std::string &from_api_path,
return perform_action(function_name,
[this, &entry, &from_api_path](
rocksdb::Transaction *txn) -> rocksdb::Status {
auto res = remove_resume(from_api_path, txn);
if (not res.ok()) {
return res;
auto txn_res = remove_resume(from_api_path, txn);
if (not txn_res.ok()) {
return txn_res;
}
return add_resume(entry, txn);