1
0
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:
Nirbhay Choubey
2014-09-17 14:12:00 -04:00
parent 99b449bbb8
commit 9a0566b09b
4 changed files with 2656 additions and 1 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -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,

View File

@@ -236,7 +236,11 @@ 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)
{
// query cache must be initialised by now
query_cache.flush();
wsrep_ready_set(FALSE);
new_status= WSREP_MEMBER_UNDEFINED;
/* Always record local_uuid and local_seqno in non-prim since this