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

HA: Use Transaction for each query #878

Merged
merged 1 commit into from
Dec 17, 2024
Merged

HA: Use Transaction for each query #878

merged 1 commit into from
Dec 17, 2024

Conversation

oxzi
Copy link
Member

@oxzi oxzi commented Dec 17, 2024

During #800, the commit dd0ca8f inlined the HA.insertEnvironment method into the retryable realization function. However, while doing so, I forgot to change the query execution context from h.db to tx. This resulted in an error when being used together with a single database connection, as introduced in #828.


Thanks for @yhabteab for the pair debug session :)

During #800, the commit dd0ca8f inlined
the HA.insertEnvironment method into the retryable realization function.
However, while doing so, I forgot to change the query execution context
from h.db to tx. This resulted in an error when being used together with
a single database connection, as introduced in #828.

Co-Authored-By: Yonas Habteab <[email protected]>
@oxzi oxzi added bug Something isn't working area/ha labels Dec 17, 2024
@oxzi oxzi added this to the 1.2.1 milestone Dec 17, 2024
@oxzi oxzi requested a review from lippserd December 17, 2024 14:34
@cla-bot cla-bot bot added the cla/signed label Dec 17, 2024
Copy link
Member

@lippserd lippserd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, that was an unfortunate oversight. Thanks for troubleshooting!

@lippserd lippserd merged commit 443150b into main Dec 17, 2024
32 checks passed
@lippserd lippserd deleted the ha-realize-tx-conn branch December 17, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ha bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants