In mysql_backend.c:gw_read_backend_event

the delay queue is now consumed when backend_protocol->state == MYSQL_AUTH_FAILED.

This will avoid sending more times the custom error in the threaded configuration.
This commit is contained in:
Massimiliano Pinto
2013-10-21 16:28:07 +02:00
parent 1ef015196b
commit 4a189696bd

View File

@ -265,6 +265,8 @@ static int gw_read_backend_event(DCB *dcb) {
1,
0,
"Connection to backend lost.");
// consume all the delay queue
dcb->delayq = gwbuf_consume(dcb->delayq, gwbuf_length(dcb->delayq));
}
/**
* Protect call of closeSession.