This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sqlite-db): Roll back if rollover::insert fails
Previously we were allowing the following scenario: - `RolloverCompleted` event is appended to the `events` table. - `RolloverCompleted` event data fails to be appended to `rollover_completed_event_data` for whatever reason. That scenario would leave us in a situation where the state between the two tables would be inconsistent. To fix it, we ensure that the rollback logic doesn't just cover `rollover::insert::insert`, but rather the entirety of `append_event`.
- Loading branch information
Showing
4 changed files
with
27 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters