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

Fixed a bug #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed a bug #2

wants to merge 1 commit into from

Conversation

perplexes
Copy link

Hey, I found an infinite loop bug that I've fixed and provided tests for. Please let me know if you have any questions.

Cause: an on_commit callback creates a transaction, which afterwards loops through all the on_commit records waiting to be called, which includes the one that creates a transaction.

Fix: Have a commit object stack that gets pushed and popped for each commit object, so that it doesn't loop, and (untested) its inner-transaction's on_commit can run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant