Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Aolin <aolin.zhang@pingcap.com>
  • Loading branch information
TomShawn and Oreoxmt committed Aug 5, 2022
1 parent 4cc9b12 commit d261f96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -799,13 +799,14 @@ Constraint checking is always performed in place for pessimistic transactions (d

- Scope: SESSION | GLOBAL
- Persists to cluster: Yes
- Type: Boolean
- Default value: `OFF`
- This variable controls whether to read historical data or the latest data when performing `ANALYZE`. If this variable is set to `ON`, `ANALYZE` reads the historical data available at the time of `ANALYZE`. If this variable is set to `OFF`, `ANALYZE` reads the latest data.
- Before v5.2, `ANALYZE` reads the latest data. From v5.2 to v6.1, `ANALYZE` reads the historical data available at the time of `ANALYZE`.

> **Warning:**
>
> If `ANALYZE` reads the historical data availiable at the time of `ANALYZE`, the long duration of `AUTO ANALYZE` might cause the `GC life time is shorter than transaction duration` error because the historical data is garbage-collected.
> If `ANALYZE` reads the historical data available at the time of `ANALYZE`, the long duration of `AUTO ANALYZE` might cause the `GC life time is shorter than transaction duration` error because the historical data is garbage-collected.
### tidb_enable_async_commit <span class="version-mark">New in v5.0</span>

Expand Down Expand Up @@ -893,7 +894,7 @@ Constraint checking is always performed in place for pessimistic transactions (d

> **Warning:**
>
> **DO NOT set this variable**. The risk of disabling this variable is unknown and might corrupt the metadata of the cluster.
> **DO NOT modify this variable**. The risk of disabling this variable is unknown and might corrupt the metadata of the cluster.
- Scope: GLOBAL
- Persists to cluster: Yes
Expand Down

0 comments on commit d261f96

Please sign in to comment.