Skip to content

Commit

Permalink
Update system-variables.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored May 9, 2022
1 parent bb35eaf commit d2a004a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,6 @@ SET tidb_query_log_max_len = 20
### tidb_restricted_read_only <span class="version-mark">New in v5.2.0</span>
- Scope: GLOBAL
- Default value: `0`
- Default value: `OFF`
- This variable controls the read-only status of the entire cluster. When the variable is `ON`, all TiDB servers in the entire cluster are in the read-only mode. In this case, TiDB only executes the statements that do not modify data, such as `SELECT`, `USE`, and `SHOW`. For other statements such as `INSERT` and `UPDATE`, TiDB rejects executing those statements in the read-only mode.
- Enabling the read-only mode using this variable only ensures that the entire cluster finally enters the read-only status. If you have changed the value of this variable in a TiDB cluster but the change has not yet propagated to other TiDB servers, the un-updated TiDB servers are still **not** in the read-only mode.
Expand Down

0 comments on commit d2a004a

Please sign in to comment.