MXS-2141: Retry query on master if it times out on slave

With causal_reads enabled, the query would return with an error if the
slave was not able to catch up to the master fast enough. By automatically
retrying the query on the master, we're guaranteed that a valid result is
always returned to the client.
This commit is contained in:
Markus Mäkelä
2018-11-06 12:25:57 +02:00
parent c661f5e838
commit e56372b153
4 changed files with 34 additions and 6 deletions

View File

@ -73,6 +73,7 @@ public:
{
NONE,
WAITING_FOR_HEADER,
RETRYING_ON_MASTER,
UPDATING_PACKETS
};