diff options
author | Daniele Sciascia <daniele.sciascia@galeracluster.com> | 2015-10-20 17:54:14 +0200 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-02-22 17:46:22 -0500 |
commit | ace86a2375c3f47badf49796eda14959b0487269 (patch) | |
tree | 2287be909e31bbdd9ed914f3065d646b3ace6122 /sql/wsrep_mysqld.h | |
parent | c1ea0570af88ed12f55fc20c54262b3688b9981d (diff) | |
download | mariadb-git-ace86a2375c3f47badf49796eda14959b0487269.tar.gz |
refs codership/mysql-wsrep#201
- Fixes query cache so that it is aware of wsrep_sync_wait.
Query cache would return (possibly stale) results to the
client, regardless of the value of wsrep_sync_wait.
- Includes the test case that reproduced the issue.
Diffstat (limited to 'sql/wsrep_mysqld.h')
-rw-r--r-- | sql/wsrep_mysqld.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/wsrep_mysqld.h b/sql/wsrep_mysqld.h index 1616bab695e..242227fd2a0 100644 --- a/sql/wsrep_mysqld.h +++ b/sql/wsrep_mysqld.h @@ -192,6 +192,7 @@ extern void wsrep_kill_mysql(THD *thd); /* new defines */ extern void wsrep_stop_replication(THD *thd); extern bool wsrep_start_replication(); +extern bool wsrep_must_sync_wait (THD* thd, uint mask = WSREP_SYNC_WAIT_BEFORE_READ); extern bool wsrep_sync_wait (THD* thd, uint mask = WSREP_SYNC_WAIT_BEFORE_READ); extern int wsrep_check_opts (int argc, char* const* argv); extern void wsrep_prepend_PATH (const char* path); |