Skip to content

client: client.Txn should take a *TxnCoordSender, not a Sender. #17657

@nvb

Description

@nvb

Discussed in #17627.

It is no longer safe to interpose another Sender between client.Txn and kv.TxnCoordSender as the interface would imply (see SenderWithTxnCoordBackdoor). Because of this, until #10511 is addressed, client.Txn should take a *TxnCoordSender instead of a Sender.

Metadata

Metadata

Assignees

Labels

C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions