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:
parent
33ba9e1bae
commit
040587c828
@ -466,7 +466,8 @@ int i, j, newline = 1;
|
||||
{
|
||||
if (newline == 1 && buf[j] == 'O')
|
||||
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;
|
||||
}
|
||||
|
@ -715,11 +715,11 @@ int i;
|
||||
ptr->client->user?ptr->client->user:"",
|
||||
ptr->client->user?"@":"",
|
||||
ptr->client->remote);
|
||||
dcb_printf(dcb, "\tConnected: %s",
|
||||
dcb_printf(dcb, "\tConnected: %s\n",
|
||||
asctime_r(localtime_r(&ptr->stats.connect, &result), buf));
|
||||
if(ptr->client->state == DCB_STATE_POLLING)
|
||||
{
|
||||
dcb_printf(dcb, "\tIdle: %.0f seconds",idle);
|
||||
dcb_printf(dcb, "\tIdle: %.0f seconds\n",idle);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user