diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b7f0d1f..8ad41683 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp b/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp index 585f5095..165bf910 100644 --- a/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp +++ b/repertory/librepertory/src/db/impl/rdb_file_mgr_db.cpp @@ -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);