MXS-874: Clear closed state before reconnecting to a server
The backend reference states should be cleared when a reconnection attempt is made. Should the creation of a new DCB succeed, the backend should no longer be closed.
This commit is contained in:
parent
bd60fbde7e
commit
578f21e757
@ -2889,6 +2889,8 @@ bool connect_server(backend_ref_t *bref, SESSION *session, bool execute_history)
|
||||
|
||||
if (bref->bref_dcb != NULL)
|
||||
{
|
||||
bref_clear_state(bref, BREF_CLOSED);
|
||||
|
||||
if (!execute_history || execute_sescmd_history(bref))
|
||||
{
|
||||
/** Add a callback for unresponsive server */
|
||||
|
Loading…
x
Reference in New Issue
Block a user