Skip to content

sa: use tx object in AddPrecertificate#8865

Open
jsha wants to merge 1 commit into
mainfrom
use-tx-in-tx
Open

sa: use tx object in AddPrecertificate#8865
jsha wants to merge 1 commit into
mainfrom
use-tx-in-tx

Conversation

@jsha

@jsha jsha commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Most of the body of this WithTransaction call used tx for manipulating the database, but the call to insert the certificateStatus row accidentally used sa.dbMap, meaning that call did not participate in transactional guarantees.

Wrote a similar bug while working on #8826, asked Claude to find the same pattern elsewhere in the codebase and came up with this one.

Most of the body of this WithTransaction call used `tx` for manipulating the
database, but the call to insert the certificateStatus row accidentally used
sa.dbMap, meaning that call did not participate in transactional guarantees.
@jsha jsha marked this pull request as ready for review July 10, 2026 17:58
@jsha jsha requested a review from a team as a code owner July 10, 2026 17:58
@jsha jsha requested a review from aarongable July 10, 2026 17: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.

2 participants