PessimisticTxn
(Appears on: TiDBConfig)
PessimisticTxn is the config for pessimistic transaction.
Field | Description |
---|---|
enable bool | (Optional) Enable must be true for ‘begin lock’ or session variable to start a pessimistic transaction. Optional: Defaults to true |
max-retry-count uint | (Optional) The max count of retry for a single statement in a pessimistic transaction. Optional: Defaults to 256 |