pingcap/tidb
在 GitHub 查看Provide a session variable to query the last transaction scope
Open
#20,775 创建于 2020年11月2日
good first issuesig/transactiontype/enhancement
仓库指标
- Star
- (40,090 star)
- PR 合并指标
- (平均合并 14天 4小时) (30 天内合并 346 个 PR)
描述
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.