Skip to content

HA: Use Transaction for each query#878

Merged
lippserd merged 1 commit intomainfrom
ha-realize-tx-conn
Dec 17, 2024
Merged

HA: Use Transaction for each query#878
lippserd merged 1 commit intomainfrom
ha-realize-tx-conn

Conversation

@oxzi
Copy link
Copy Markdown
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 <yonas.habteab@icinga.com>
@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
Copy Markdown
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
@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