mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Fix remaining issues with wsrep_sync_wait and query cache. - Fixes misplaced call to invalidate query cache in Rows_log_event::do_apply_event(). Query cache was invalidated too early, and allowed old entries to be inserted to the cache. - Reset thd->wsrep_sync_wait_gtid on query cache hit. THD->cleanup_after_query is not called in such cases, and thd->wsrep_sync_wait_gtid remained initialized.
This commit is contained in:
committed by
Nirbhay Choubey
parent
c05d85f45d
commit
c6659345a0
@@ -7247,6 +7247,12 @@ void mysql_parse(THD *thd, char *rawbuf, uint length,
|
||||
sql_statement_info[SQLCOM_SELECT].m_key);
|
||||
status_var_increment(thd->status_var.com_stat[SQLCOM_SELECT]);
|
||||
thd->update_stats();
|
||||
#ifdef WITH_WSREP
|
||||
if (WSREP_CLIENT(thd))
|
||||
{
|
||||
thd->wsrep_sync_wait_gtid= WSREP_GTID_UNDEFINED;
|
||||
}
|
||||
#endif /* WITH_WSREP */
|
||||
}
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
Reference in New Issue
Block a user