Fix to MXS-413: https://mariadb.atlassian.net/browse/MXS-413
Added missing terminating newlines so showSession and improved maxadmin logic.
This commit is contained in:
@ -466,7 +466,8 @@ int i, j, newline = 1;
|
|||||||
{
|
{
|
||||||
if (newline == 1 && buf[j] == 'O')
|
if (newline == 1 && buf[j] == 'O')
|
||||||
newline = 2;
|
newline = 2;
|
||||||
else if (newline == 2 && buf[j] == 'K' && j == i - 1)
|
else if ((newline == 2 && buf[j] == 'K' && j == i - 1) ||
|
||||||
|
(j == i - 2 && buf[j] == 'O' && buf[j + 1] == 'K'))
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -715,11 +715,11 @@ int i;
|
|||||||
ptr->client->user?ptr->client->user:"",
|
ptr->client->user?ptr->client->user:"",
|
||||||
ptr->client->user?"@":"",
|
ptr->client->user?"@":"",
|
||||||
ptr->client->remote);
|
ptr->client->remote);
|
||||||
dcb_printf(dcb, "\tConnected: %s",
|
dcb_printf(dcb, "\tConnected: %s\n",
|
||||||
asctime_r(localtime_r(&ptr->stats.connect, &result), buf));
|
asctime_r(localtime_r(&ptr->stats.connect, &result), buf));
|
||||||
if(ptr->client->state == DCB_STATE_POLLING)
|
if(ptr->client->state == DCB_STATE_POLLING)
|
||||||
{
|
{
|
||||||
dcb_printf(dcb, "\tIdle: %.0f seconds",idle);
|
dcb_printf(dcb, "\tIdle: %.0f seconds\n",idle);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user