MXS-1549: Prevent optimistic transaction with no slaves

If the router session does not have an already open slave connection,
optimistic transactions are not attempted.
This commit is contained in:
Markus Mäkelä
2018-06-25 02:01:25 +03:00
parent 0911c664b1
commit 8cf22dbb56
2 changed files with 22 additions and 5 deletions

View File

@ -204,6 +204,9 @@ private:
void handle_trx_replay();
// Do we have at least one open slave connection
bool have_connected_slaves() const;
/**
* Start the replaying of the latest transaction
*