We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Two processes calling roll.Init simultaneously have a chance of a deadlock:
roll.Init
https://github.com/xataio/pgroll/blob/main/pkg/roll/roll.go#L88-L90
Advisory locking could be a solution here.
The text was updated successfully, but these errors were encountered:
Make state initialization concurrency safe (#285)
b4e3044
Make `pgroll` state initialization concurrency safe by using Postgres advisory locking to ensure at most one connection can initialize at at time. See docs on Postgres advisory locking: * https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-ADVISORY-LOCKS * https://www.postgresql.org/docs/current/explicit-locking.html#ADVISORY-LOCKS Closes #283
andrew-farries
Successfully merging a pull request may close this issue.
Two processes calling
roll.Init
simultaneously have a chance of a deadlock:https://github.com/xataio/pgroll/blob/main/pkg/roll/roll.go#L88-L90
Advisory locking could be a solution here.
The text was updated successfully, but these errors were encountered: