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

Correctly reset thread variable at_time even on exception #44

Merged
merged 1 commit into from
May 3, 2024

Conversation

doits
Copy link
Contributor

@doits doits commented Apr 30, 2024

Thread.current[:at_time] was set but not reset if the yield raised an error. This led to a stale at_time being used in unrelated queries on the same thread.

`Thread.current[:at_time]` was set but not reset if the `yield` raised
an error. This led to a stale `at_time` being used in unrelated queries
on the same thread.
@evman182 evman182 requested a review from bkroeker May 3, 2024 12:20
@evman182 evman182 merged commit 37c4672 into bkroeker:master May 3, 2024
19 checks passed
@doits doits deleted the with_thread_variable_surviving branch June 28, 2024 13:58
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.

3 participants