Skip to content

Commit c73bd92

Browse files
authored
upgrade: replace the wrong command SELECT TIDB_CURRENT_TSO() with BEGIN; SELECT TIDB_CURRENT_TSO(); ROLLBACK; (#22203)
1 parent fd5d2be commit c73bd92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)