From 24fc5076ec1cb67079d17cd7dd9ed93975f8cb22 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Fri, 28 May 2021 09:15:14 -0600 Subject: [PATCH] fix linter --- scripts/generate-system-variables.go | 4 ++-- system-variables.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/generate-system-variables.go b/scripts/generate-system-variables.go index 73bfb61757643..b29738449c56c 100644 --- a/scripts/generate-system-variables.go +++ b/scripts/generate-system-variables.go @@ -432,7 +432,7 @@ func getExtendedDescription(sv *variable.SysVar) string { case variable.TiDBEvolvePlanTaskStartTime: return "- This variable is used to set the start time of baseline evolution in a day." case variable.TiDBExecutorConcurrency: - return "This variable is used to set the concurrency of the following SQL operators (to one value):\n" + + return "\nThis variable is used to set the concurrency of the following SQL operators (to one value):\n" + "\n" + "- `index lookup`\n" + "- `index lookup join`\n" + @@ -692,7 +692,7 @@ func getExtendedDescription(sv *variable.SysVar) string { case variable.TiDBSkipASCIICheck: return "- This variable is used to set whether to skip ASCII validation.\n- Validating ASCII characters affects the performance. When you are sure that the input characters are valid ASCII characters, you can set the variable value to `ON`." case variable.TiDBSkipIsolationLevelCheck: - return "- After this switch is enabled, if an isolation level unsupported by TiDB is assigned to `tx_isolation`, no error is reported. This helps improve compatibility with applications that set (but do not depend on) a different isolation level.\n" + + return "- After this switch is enabled, if an isolation level unsupported by TiDB is assigned to `tx_isolation`, no error is reported. This helps improve compatibility with applications that set (but do not depend on) a different isolation level.\n\n" + "```sql\n" + "tidb> set tx_isolation='serializable';\n" + "ERROR 8048 (HY000): The isolation level 'serializable' is not supported. Set tidb_skip_isolation_level_check=1 to skip this error\n" + diff --git a/system-variables.md b/system-variables.md index 340a1532422bb..540f288fa3d55 100644 --- a/system-variables.md +++ b/system-variables.md @@ -619,6 +619,7 @@ Query OK, 0 rows affected (0.09 sec) - Scope: SESSION | GLOBAL - Default value: 5 - Range: [1, 18446744073709551615] + This variable is used to set the concurrency of the following SQL operators (to one value): - `index lookup` @@ -1110,6 +1111,7 @@ SET tidb_query_log_max_len = 20 - Scope: SESSION | GLOBAL - Default value: OFF - After this switch is enabled, if an isolation level unsupported by TiDB is assigned to `tx_isolation`, no error is reported. This helps improve compatibility with applications that set (but do not depend on) a different isolation level. + ```sql tidb> set tx_isolation='serializable'; ERROR 8048 (HY000): The isolation level 'serializable' is not supported. Set tidb_skip_isolation_level_check=1 to skip this error