MXS-1295: Add strict_sp_calls parameter

The new parameter allows the session to be "locked" to the master server
after a stored procedure is called. This will keep the session state
consistent if the stored procedure call modifies the state of the session.
This commit is contained in:
Markus Mäkelä
2017-09-19 16:13:52 +03:00
parent 9d9cffe4c7
commit 9046db06c5
6 changed files with 31 additions and 3 deletions

View File

@ -272,6 +272,7 @@ typedef struct rwsplit_config_st
bool master_accept_reads; /**< Use master for reads */
bool strict_multi_stmt; /**< Force non-multistatement queries to be routed
* to the master after a multistatement query. */
bool strict_sp_calls; /**< Lock session to master after an SP call */
enum failure_mode master_failure_mode; /**< Master server failure handling mode.
* @see enum failure_mode */
bool retry_failed_reads; /**< Retry failed reads on other servers */