Skip to content

fix(Spanner): ensure precommit token is set for ILB transactions - #9406

Open
bshaffer wants to merge 1 commit into
mainfrom
spanner-fix-transaction-mutation
Open

fix(Spanner): ensure precommit token is set for ILB transactions#9406
bshaffer wants to merge 1 commit into
mainfrom
spanner-fix-transaction-mutation

Conversation

@bshaffer

Copy link
Copy Markdown
Contributor

Fixes #9331

Corrects the return flow in Operation::transaction() which previously returned the newly created transaction early before setting the precommitToken retrieved from the beginTransaction response.

Additionally, updates Transaction::commit() to copy the precommitToken from the newly initiated transaction object to the current transaction instance when a transaction is started inline.

@bshaffer
bshaffer requested a review from a team as a code owner July 28, 2026 18:42
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Jul 28, 2026
@bshaffer bshaffer added next release PRs to be included in the next release and removed api: spanner Issues related to the Spanner API. labels Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next release PRs to be included in the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Spanner] Wrapping mutations in transaction causes commits to run twice

1 participant