when turning off tidb_rc_read_check_ts, the isolation of current transaction is not reset
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
ensure tidb is running at RC lsolation and pessimistic transaction mode.
tidb_rc_read_check_ts = ON;
begin;
select * from t1 where id1 = 1;
tidb_rc_read_check_ts = OFF;
select * from t1 where id1 = 1;
as below, the isolation of current snapshot is not reset

### 2. What did you expect to see? (Required)
The isolation of current snapshot is SI.
### 3. What did you see instead (Required)
The isolation of current snapshot is RCCheckTS.
### 4. What is your TiDB version? (Required)
| Release Version: v6.2.0
Edition: Community
Git Commit Hash: daf2b17cdfe30c02ce282361009fb5bdb05f2b0e
Git Branch: heads/refs/tags/v6.2.0
UTC Build Time: 2022-08-22 13:47:05
Contributor guide
Assessment
This issue has not been assessed yet.