DBZ-4561: Add flush table[s] grammer for all open tables

This commit is contained in:
Sebastian Bruckner 2022-01-18 14:57:23 +01:00 committed by Gunnar Morling
parent 1e425686d5
commit 7f827f13d6
2 changed files with 4 additions and 2 deletions

View File

@ -1855,8 +1855,8 @@ flushOption
| USER_RESOURCES | TABLES (WITH READ LOCK)?
) #simpleFlushOption
| RELAY LOGS channelOption? #channelFlushOption
| TABLES tables flushTableOption? #tableFlushOption
| TABLE tables flushTableOption? #tableFlushOption
| TABLES tables? flushTableOption? #tableFlushOption
| TABLE tables? flushTableOption? #tableFlushOption
;
flushTableOption

View File

@ -4,12 +4,14 @@ flush local hosts;
flush hosts, status;
-- Table flushing
flush tables;
flush local tables Foo;
flush tables Foo, Bar;
flush tables Foo, Bar for export;
flush tables Foo, Bar with read lock;
-- 'FLUSH TABLE' is an alias for 'FLUSH TABLES' (https://dev.mysql.com/doc/refman/8.0/en/flush.html)
flush table;
flush local table Foo;
flush TABLE Foo, Bar;
flush table Foo, Bar for export;