Comment 1 for bug 1296403

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

=== modified file 'sql/wsrep_mysqld.cc'
--- sql/wsrep_mysqld.cc 2014-04-20 17:19:52 +0000
+++ sql/wsrep_mysqld.cc 2014-04-20 18:36:58 +0000
@@ -230,6 +230,10 @@

   /* Proceed further only if view is PRIMARY */
   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

in wsrep_view_handler_cb should do.