This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
dbmate should roll the transaction back on sigint #98
Labels
You can continue the conversation there. Go to discussion →
I think today there is a shutdown race that sometimes causes a rollback, but to make it consistent I think we need a signal handler in here:
https://github.com/amacneil/dbmate/blob/master/pkg/dbmate/db.go#L188,L203
How about the first sigint triggers the rollback (and subsequent exit), and the second one does an immediate exit?
The text was updated successfully, but these errors were encountered: