pingcap/tidb
Vedi su GitHubProvide a session variable to query the last transaction scope
Open
#20.775 aperta il 2 nov 2020
good first issuesig/transactiontype/enhancement
Metriche repository
- Star
- (40.090 star)
- Metriche merge PR
- (Merge medio 14g 4h) (346 PR mergiate in 30 g)
Descrizione
Development Task
To figure out which transaction scope the last transaction uses, we need a read-only session variable to query it. This is a part of the global/local transaction roadmap #20448.
Implementations
It's similar to other session variables like last_insert_id and last_plan_from_cache. You can refer to the implementation of these variables.