mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Bug#1421360: Add Percona Server specific FLUSH statements.
Added following: FLUSH CLIENT_STATISTICS FLUSH INDEX_STATISTICS FLUSH TABLE_STATISTICS FLUSH THREAD_STATISTICS FLUSH USER_STATISTICS pertaining to USER STATISTICS https://www.percona.com/doc/percona-server/5.6/diagnostics/user_stats.html FLUSH CHANGED_PAGE_BITMAPS pertaining to changed page tracking. https://www.percona.com/doc/percona-server/5.6/management/changed_page_tracking.html Also, added tests for them. (cherry picked from commit 7efe49010c7f217663f364657090812b4723f426) Conflicts: mysql-test/suite/galera/r/galera_flush.result mysql-test/suite/galera/r/galera_flush_gtid.result mysql-test/suite/galera/t/galera_flush.test sql/sql_parse.cc
This commit is contained in:
committed by
Nirbhay Choubey
parent
1077eef942
commit
0ecc4fe2ac
@@ -4670,14 +4670,36 @@ end_with_restore_list:
|
||||
|
||||
#ifdef WITH_WSREP
|
||||
if (lex->type & (
|
||||
REFRESH_GRANT |
|
||||
REFRESH_HOSTS |
|
||||
REFRESH_DES_KEY_FILE |
|
||||
REFRESH_GRANT |
|
||||
REFRESH_HOSTS |
|
||||
#ifdef HAVE_OPENSSL
|
||||
REFRESH_DES_KEY_FILE |
|
||||
#endif
|
||||
/*
|
||||
Write all flush log statements except
|
||||
FLUSH LOGS
|
||||
FLUSH BINARY LOGS
|
||||
Check reload_acl_and_cache for why.
|
||||
*/
|
||||
REFRESH_RELAY_LOG |
|
||||
REFRESH_SLOW_LOG |
|
||||
REFRESH_GENERAL_LOG |
|
||||
REFRESH_ENGINE_LOG |
|
||||
REFRESH_ERROR_LOG |
|
||||
#ifdef HAVE_QUERY_CACHE
|
||||
REFRESH_QUERY_CACHE_FREE |
|
||||
REFRESH_QUERY_CACHE_FREE |
|
||||
#endif /* HAVE_QUERY_CACHE */
|
||||
REFRESH_STATUS |
|
||||
REFRESH_USER_RESOURCES))
|
||||
REFRESH_STATUS |
|
||||
REFRESH_USER_RESOURCES |
|
||||
/*
|
||||
Percona Server specific
|
||||
*/
|
||||
REFRESH_FLUSH_PAGE_BITMAPS |
|
||||
REFRESH_TABLE_STATS |
|
||||
REFRESH_INDEX_STATS |
|
||||
REFRESH_USER_STATS |
|
||||
REFRESH_CLIENT_STATS |
|
||||
REFRESH_THREAD_STATS))
|
||||
{
|
||||
WSREP_TO_ISOLATION_BEGIN_WRTCHK(WSREP_MYSQL_DB, NULL, NULL)
|
||||
}
|
||||
|
Reference in New Issue
Block a user