Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to select FOR UPDATE to lock row #245

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

ClaytonNorthey92
Copy link
Contributor

Summary
prior, when selecting a row to update, we were not locking the row selected so multiple processes could get this row at the same time.

Changes
select row FOR UPDATE to lock row to ensure only one process gets it

@ClaytonNorthey92 ClaytonNorthey92 requested a review from a team as a code owner September 5, 2024 15:16
@github-actions github-actions bot added the area: bfg This is a change to BFG (Bitcoin Finality Governor) label Sep 5, 2024
@ClaytonNorthey92 ClaytonNorthey92 added the size: XS This change is very small (+/- <10) label Sep 5, 2024
Copy link
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@ClaytonNorthey92 ClaytonNorthey92 merged commit dcd150d into main Sep 5, 2024
6 checks passed
@ClaytonNorthey92 ClaytonNorthey92 deleted the clayton/for-update branch September 5, 2024 15:23
web3cryptoguy pushed a commit to web3cryptoguy/heminetwork that referenced this pull request Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: bfg This is a change to BFG (Bitcoin Finality Governor) size: XS This change is very small (+/- <10)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants