Skip to content

Commit e995469

Browse files
authored
upgrade: replace the wrong command SELECT TIDB_CURRENT_TSO() with BEGIN; SELECT TIDB_CURRENT_TSO(); ROLLBACK; (#22203) (#22204)
1 parent 13ae9b8 commit e995469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tidb-upgrade-migration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Additionally, you can scale out the new cluster to handle expected workloads and
222222
- After setting the old cluster to read-only mode, retrieve the current `up-tso`:
223223
224224
```sql
225-
SELECT tidb_current_ts();
225+
BEGIN; SELECT TIDB_CURRENT_TSO(); ROLLBACK;
226226
```
227227
228228
- Monitor the Changefeed `checkpointTs` to confirm it has surpassed `up-tso`, indicating that TiCDC has completed data replication.
@@ -268,7 +268,7 @@ Additionally, you can scale out the new cluster to handle expected workloads and
268268
2. Record the current TSO of the new cluster:
269269
270270
```sql
271-
SELECT tidb_current_ts();
271+
BEGIN; SELECT TIDB_CURRENT_TSO(); ROLLBACK;
272272
```
273273
274274
3. Configure the reverse replication link and ensure the Changefeed task is running properly:

0 commit comments

Comments
 (0)