mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Fix an error in queue_log file rotation optimization code
This code was copy-and-pasted without properly changing references to event_rotate into queue_rotate, so under some conditions the log rotation would rotate queue_log even though it was not necessary. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@191775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -623,14 +623,13 @@ static int reload_logger(int rotate)
|
||||
fclose(qlog);
|
||||
qlog = NULL;
|
||||
} else
|
||||
event_rotate = 0;
|
||||
queue_rotate = 0;
|
||||
} else {
|
||||
fclose(qlog);
|
||||
qlog = NULL;
|
||||
}
|
||||
} else
|
||||
queue_rotate = 0;
|
||||
qlog = NULL;
|
||||
|
||||
ast_mkdir(ast_config_AST_LOG_DIR, 0777);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user