MXS-2464: Retry failed session commands

If the execution of a session command fails on a master, it is retried
again. If the master is not available, the response will be returned from
one of the slaves.
This commit is contained in:
Markus Mäkelä
2019-05-31 09:01:39 +03:00
parent 6d089e3283
commit 220fea3546
2 changed files with 42 additions and 3 deletions

View File

@ -225,6 +225,7 @@ private:
int get_max_replication_lag();
mxs::SRWBackend& get_backend_from_dcb(DCB* dcb);
bool retry_master_query(mxs::SRWBackend& backend);
void handle_error_reply_client(DCB* backend_dcb, GWBUF* errmsg);
bool handle_error_new_connection(DCB* backend_dcb, GWBUF* errmsg);
void manage_transactions(mxs::SRWBackend& backend, GWBUF* writebuf);