Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6736f152
Commit
6736f152
authored
Mar 03, 2020
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FLUSH THREADS
parent
37393bea
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
2 deletions
+21
-2
mysql-test/main/flush.result
mysql-test/main/flush.result
+7
-0
mysql-test/main/flush.test
mysql-test/main/flush.test
+6
-0
mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result
...te/perfschema/r/start_server_low_digest_sql_length.result
+2
-2
mysql-test/suite/perfschema/t/start_server_low_digest_sql_length.test
...uite/perfschema/t/start_server_low_digest_sql_length.test
+1
-0
sql/lex.h
sql/lex.h
+1
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-0
No files found.
mysql-test/main/flush.result
View file @
6736f152
...
...
@@ -558,3 +558,10 @@ ERROR HY000: Table 'v1' was not locked with LOCK TABLES
UNLOCK TABLES;
DROP VIEW v1;
DROP TABLE t1;
#
# Test FLUSH THREADS
#
flush threads;
show status like "Threads_cached";
Variable_name Value
Threads_cached 0
mysql-test/main/flush.test
View file @
6736f152
...
...
@@ -672,3 +672,9 @@ UNLOCK TABLES;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Test FLUSH THREADS
--
echo
#
flush
threads
;
show
status
like
"Threads_cached"
;
mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result
View file @
6736f152
...
...
@@ -8,5 +8,5 @@ SELECT 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
####################################
SELECT event_name, digest, digest_text, sql_text FROM events_statements_history_long;
event_name digest digest_text sql_text
statement/sql/
truncate 1ce0abbaf6f3f120bdc1464f34c3e614 TRUNCATE TABLE truncat
...
statement/sql/
select c13037c37462abf2be6cf94058702f18 SELECT ? + ? + SELECT
...
statement/sql/
select 8ad134e475b278738ee855a05d6a77cf SELECT ? + ? + SELECT
...
statement/sql/
truncate 2b32156b59f41d61d9070458bce5932e TRUNCATE TABLE truncat
...
mysql-test/suite/perfschema/t/start_server_low_digest_sql_length.test
View file @
6736f152
...
...
@@ -19,4 +19,5 @@ SELECT 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1
--
echo
####################################
--
echo
# QUERYING PS STATEMENT DIGEST
--
echo
####################################
--
sorted_result
SELECT
event_name
,
digest
,
digest_text
,
sql_text
FROM
events_statements_history_long
;
sql/lex.h
View file @
6736f152
...
...
@@ -661,6 +661,7 @@ static SYMBOL symbols[] = {
{
"TRAILING"
,
SYM
(
TRAILING
)},
{
"TRANSACTION"
,
SYM
(
TRANSACTION_SYM
)},
{
"TRANSACTIONAL"
,
SYM
(
TRANSACTIONAL_SYM
)},
{
"THREADS"
,
SYM
(
THREADS_SYM
)},
{
"TRIGGER"
,
SYM
(
TRIGGER_SYM
)},
{
"TRIGGERS"
,
SYM
(
TRIGGERS_SYM
)},
{
"TRUE"
,
SYM
(
TRUE_SYM
)},
...
...
sql/sql_yacc.yy
View file @
6736f152
...
...
@@ -1098,6 +1098,7 @@ End SQL_MODE_ORACLE_SPECIFIC */
%token <kwd> TIME_SYM /* SQL-2003-R, Oracle-R */
%token <kwd> TRANSACTION_SYM
%token <kwd> TRANSACTIONAL_SYM
%token <kwd> THREADS_SYM
%token <kwd> TRIGGERS_SYM
%token <kwd> TRIM_ORACLE
%token <kwd> TRUNCATE_SYM
...
...
@@ -14085,6 +14086,8 @@ flush_option:
{ Lex->type|= REFRESH_USER_RESOURCES; }
| SSL_SYM
{ Lex->type|= REFRESH_SSL;}
| THREADS_SYM
{ Lex->type|= REFRESH_THREADS;}
| IDENT_sys remember_tok_start
{
Lex->type|= REFRESH_GENERIC;
...
...
@@ -15741,6 +15744,7 @@ keyword_sp_var_and_label:
| THAN_SYM
| TRANSACTION_SYM %prec PREC_BELOW_CONTRACTION_TOKEN2
| TRANSACTIONAL_SYM
| THREADS_SYM
| TRIGGERS_SYM
| TRIM_ORACLE
| TIMESTAMP_ADD
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment