summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.cc
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@skysql.com>2014-09-17 14:12:00 -0400
committerNirbhay Choubey <nirbhay@skysql.com>2014-09-17 14:12:00 -0400
commit9a0566b09b075f29ff5f9f8b3a70b473433e6c58 (patch)
treeb48c421e70ce767c58f9adc17e0b293ece30cddf /sql/wsrep_mysqld.cc
parent99b449bbb816a2467257c60fb6967b615db2ef4f (diff)
downloadmariadb-git-9a0566b09b075f29ff5f9f8b3a70b473433e6c58.tar.gz
MDEV-6447: Galera: Enable QC
* Added galera/query_cache test * Merged patch for lp:1296403
Diffstat (limited to 'sql/wsrep_mysqld.cc')
-rw-r--r--sql/wsrep_mysqld.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
index 7223e176c56..ba802bba7e2 100644
--- a/sql/wsrep_mysqld.cc
+++ b/sql/wsrep_mysqld.cc
@@ -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