Improve locking around pgroll initialization
andrew-farries opened this issue · 0 comments
andrew-farries commented
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.