ProxySQL crashes if client is not able to keep up with records returned and query has a warning condition

Show Warning check is added to avoid infinite loop
pull/4073/head
Rahim Kanji 3 years ago
parent da9df6d48c
commit 4e44551dd2

@ -1526,7 +1526,8 @@ handler_again:
break;
case ASYNC_USE_RESULT_CONT:
{
if (myds->sess && myds->sess->client_myds && myds->sess->mirror==false) {
if (myds->sess && myds->sess->client_myds && myds->sess->mirror==false &&
myds->sess->status != SHOW_WARNINGS) { // see issue#4072
unsigned int buffered_data=0;
buffered_data = myds->sess->client_myds->PSarrayOUT->len * RESULTSET_BUFLEN;
buffered_data += myds->sess->client_myds->resultset->len * RESULTSET_BUFLEN;

Loading…
Cancel
Save