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

[stm] use current transaction in initNow if available #949

Merged
merged 1 commit into from
Dec 22, 2024
Merged

Conversation

fwbrasil
Copy link
Collaborator

TRef.initNow is essentially a footgun. If called within a transaction, it'll make the transaction entry a retry loop for as long as the retry Schedule allows. I spent some time debugging an issue caused by this scenario because I added a transaction in an outer scope that had a Tref.initNow in it.

@fwbrasil fwbrasil merged commit 4561ed7 into main Dec 22, 2024
3 checks passed
@fwbrasil fwbrasil deleted the tref-initnow branch December 22, 2024 03:04
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.

2 participants