The Function of Slow Log getBatchLogForReversedScan

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 慢日志getBatchLogForReversedScan的作用

| username: TiDBer_pkQ5q1l0

【TiDB Usage Environment】Production Environment
【TiDB Version】5.2.1
【Problem Description and Impact】
Is the function of the getBatchLogForReversedScan method in slow_query.go to read previous slow log files?
【Attachment】

| username: xfworld | Original post link

Not only the past ones, but also the ones happening now will be read in.


Refer to the description of the test code

| username: TiDBer_pkQ5q1l0 | Original post link

I have a question, why do we need to read out the historical slow log files?

| username: xfworld | Original post link

There is a historical statistical diagnostic information, which includes some characteristics and information of the historical slow logs.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. No new replies are allowed.