From ec3a77225822536efbf5292f63f4eb4698d1fafe Mon Sep 17 00:00:00 2001 From: imilinovic Date: Wed, 13 Mar 2024 13:03:15 +0100 Subject: [PATCH] newline --- src/storage/v2/disk/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/v2/disk/storage.cpp b/src/storage/v2/disk/storage.cpp index 78122d0e1..3d99fe770 100644 --- a/src/storage/v2/disk/storage.cpp +++ b/src/storage/v2/disk/storage.cpp @@ -1761,12 +1761,12 @@ utils::BasicResult DiskStorage::DiskAccessor::Co logging::AssertRocksDBStatus(transaction_.disk_transaction_->SetCommitTimestamp(*commit_timestamp_)); } auto commitStatus = transaction_.disk_transaction_->Commit(); - if (!commitStatus.ok()) { transaction_.disk_transaction_->Rollback(); } delete transaction_.disk_transaction_; transaction_.disk_transaction_ = nullptr; + if (!commitStatus.ok()) { spdlog::error("rocksdb: Commit failed with status {}", commitStatus.ToString()); return StorageManipulationError{SerializationError{}};