MDEV-6447: addendum, moving QC code within HAVE_QUERY_CACHE.

This commit is contained in:
Nirbhay Choubey 2014-09-17 14:39:43 -04:00
parent 9a0566b09b
commit 5589509353

View file

@ -238,8 +238,10 @@ wsrep_view_handler_cb (void* app_ctx,
/* 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;