pingcap/tidb

Provide a session variable to query the last transaction scope

Open

#20.775 geöffnet am 2. Nov. 2020

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)Go (6.186 Forks)batch import
good first issuesig/transactiontype/enhancement

Repository-Metriken

Stars
 (40.090 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 4h) (346 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide