mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-6447: Galera: Enable QC
* Added galera/query_cache test * Merged patch for lp:1296403
This commit is contained in:
1645
mysql-test/suite/galera/r/query_cache.result
Normal file
1645
mysql-test/suite/galera/r/query_cache.result
Normal file
File diff suppressed because it is too large
Load Diff
1002
mysql-test/suite/galera/t/query_cache.test
Normal file
1002
mysql-test/suite/galera/t/query_cache.test
Normal file
File diff suppressed because it is too large
Load Diff
@@ -44,8 +44,10 @@ static struct opt opts[] =
|
||||
{ "wsrep_sst_receive_address","AUTO"}, // mysqld.cc
|
||||
{ "binlog_format", "ROW" }, // mysqld.cc
|
||||
{ "wsrep_provider", "none" }, // mysqld.cc
|
||||
#if 0
|
||||
{ "query_cache_type", "0" }, // mysqld.cc
|
||||
{ "query_cache_size", "0" }, // mysqld.cc
|
||||
#endif
|
||||
{ "locked_in_memory", "0" }, // mysqld.cc
|
||||
{ "wsrep_cluster_address", "0" }, // mysqld.cc
|
||||
{ "locks_unsafe_for_binlog", "0" }, // ha_innodb.cc
|
||||
@@ -61,8 +63,10 @@ enum
|
||||
WSREP_SST_RECEIVE_ADDRESS,
|
||||
BINLOG_FORMAT,
|
||||
WSREP_PROVIDER,
|
||||
#if 0
|
||||
QUERY_CACHE_TYPE,
|
||||
QUERY_CACHE_SIZE,
|
||||
#endif
|
||||
LOCKED_IN_MEMORY,
|
||||
WSREP_CLUSTER_ADDRESS,
|
||||
LOCKS_UNSAFE_FOR_BINLOG,
|
||||
|
||||
@@ -254,7 +254,13 @@ wsrep_view_handler_cb (void* app_ctx,
|
||||
wsrep_cluster_size, wsrep_local_index, view->proto_ver);
|
||||
|
||||
/* Proceed further only if view is PRIMARY */
|
||||
if (WSREP_VIEW_PRIMARY != view->status) {
|
||||
if (WSREP_VIEW_PRIMARY != view->status)
|
||||
{
|
||||
#ifdef HAVE_QUERY_CACHE
|
||||
// query cache must be initialised by now
|
||||
query_cache.flush();
|
||||
#endif /* HAVE_QUERY_CACHE */
|
||||
|
||||
wsrep_ready_set(FALSE);
|
||||
new_status= WSREP_MEMBER_UNDEFINED;
|
||||
/* Always record local_uuid and local_seqno in non-prim since this
|
||||
|
||||
Reference in New Issue
Block a user