Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix bug in commit_store get_batch_by_transaction
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <jlivesey@gmail.com>
  • Loading branch information
suchapalaver committed Oct 26, 2023
1 parent a20a07c commit a5dd277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator/src/journal/commit_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl CommitStore {
.batches
.into_iter()
.find(|batch| {
!batch
batch
.transaction_ids
.iter()
.any(|txn_id| txn_id == transaction_id)
Expand Down Expand Up @@ -605,7 +605,7 @@ mod tests {
!batch
.transaction_ids
.iter()
.any(|txn_id| txn_id == transaction_id)
.all(|txn_id| txn_id != transaction_id)
})
.ok_or_else(|| DatabaseError::CorruptionError("Transaction index corrupted".into()))
// })
Expand Down

0 comments on commit a5dd277

Please sign in to comment.