RocksDB implementations should be transactional #24
This commit is contained in:
parent
5187f32346
commit
85136c9af2
@ -15,6 +15,7 @@
|
|||||||
* OS X support is temporarily disabled
|
* OS X support is temporarily disabled
|
||||||
* \#19 \[bug\] Rename file is broken for files that are existing
|
* \#19 \[bug\] Rename file is broken for files that are existing
|
||||||
* \#23 \[bug\] Incorrect file size displayed while upload is pending
|
* \#23 \[bug\] Incorrect file size displayed while upload is pending
|
||||||
|
* \#24 RocksDB implementations should be transactional
|
||||||
|
|
||||||
### Changes from v2.0.1-rc
|
### Changes from v2.0.1-rc
|
||||||
|
|
||||||
|
@ -343,9 +343,9 @@ auto rdb_file_mgr_db::rename_resume(const std::string &from_api_path,
|
|||||||
return perform_action(function_name,
|
return perform_action(function_name,
|
||||||
[this, &entry, &from_api_path](
|
[this, &entry, &from_api_path](
|
||||||
rocksdb::Transaction *txn) -> rocksdb::Status {
|
rocksdb::Transaction *txn) -> rocksdb::Status {
|
||||||
auto res = remove_resume(from_api_path, txn);
|
auto txn_res = remove_resume(from_api_path, txn);
|
||||||
if (not res.ok()) {
|
if (not txn_res.ok()) {
|
||||||
return res;
|
return txn_res;
|
||||||
}
|
}
|
||||||
|
|
||||||
return add_resume(entry, txn);
|
return add_resume(entry, txn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user