extern function log_rotate

pull/2/head
yuqing 2014-08-26 15:30:49 +08:00
parent d88e9a6408
commit ba60d10858
3 changed files with 10 additions and 1 deletions

View File

@ -24,6 +24,7 @@ Version 1.06 2014-08-26
* http_parse_query_ex support binary buffer, and set both lengths of key and name
* add function ioevent_remove
* add function log_reopen_ex
* extern function log_rotate
Version 1.05 2012-07-08
* update source code from FastDFS V3.09

View File

@ -322,7 +322,7 @@ int log_delete_old_files(void *args)
return 0;
}
static int log_rotate(LogContext *pContext)
int log_rotate(LogContext *pContext)
{
struct tm tm;
time_t current_time;

View File

@ -255,6 +255,14 @@ int log_sync_func(void *args);
*/
int log_notify_rotate(void *args);
/** rotate log file
* parameters:
* pContext: the log context
* return: error no, 0 for success, != 0 fail
*/
int log_rotate(LogContext *pContext);
/** delete old log files
* parameters:
* args: should be (LogContext *)