Log: skygw_log_rotate replaced with mxs_log_rotate.

With only one log-file no arguments are needed. The maxadmin command
'flush log'  still accepts all the previous arguments, but warns about
them being deprecated.
This commit is contained in:
Johan Wikman
2015-11-12 09:15:56 +02:00
parent 0705f38bb9
commit bdfd72404b
5 changed files with 57 additions and 68 deletions

View File

@ -303,10 +303,7 @@ char errmsg[120];
*/
void exec_flush_logs(DCB *dcb, MAXINFO_TREE *tree)
{
skygw_log_rotate(LE);
skygw_log_rotate(LM);
skygw_log_rotate(LT);
skygw_log_rotate(LD);
mxs_log_rotate();
maxinfo_send_ok(dcb);
}
@ -1252,4 +1249,4 @@ void maxinfo_send_ok(DCB *dcb)
memcpy(buffer->start, ok_packet, sizeof(ok_packet));
dcb->func.write(dcb, buffer);
}
}
}