pingcap/tidb

Provide a session variable to query the last transaction scope

Open

#20,775 创建于 2020年11月2日

在 GitHub 查看
 (1 评论) (0 反应) (1 负责人)Go (6,186 fork)batch import
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.

贡献者指南