Whenever monitored server's state changes, a callback, router_handle_state_switch is called for each DCB in MaxScale session. The DCB referring to the server in question will be passed as parameter to backend DCB's hangup function.

The logic that solves the situation is not in place yet.
This commit is contained in:
VilhoRaatikka
2014-06-13 13:30:50 +03:00
parent 9eda859724
commit dfc9141a38
4 changed files with 63 additions and 45 deletions

View File

@ -35,7 +35,7 @@ typedef enum bref_state {
BREF_NOT_USED = 0x00,
BREF_IN_USE = 0x01,
BREF_WAITING_RESULT = 0x02, /*< for anything that responds */
BREF_CLOSED = 0x08
BREF_CLOSED = 0x04
} bref_state_t;
#define BREF_IS_NOT_USED(s) (s->bref_state & BREF_NOT_USED)