[asterisk-commits] kpfleming: trunk r191775 - /trunk/main/logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 2 13:40:06 CDT 2009


Author: kpfleming
Date: Sat May  2 13:39:48 2009
New Revision: 191775

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=191775
Log:
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.


Modified:
    trunk/main/logger.c

Modified: trunk/main/logger.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/logger.c?view=diff&rev=191775&r1=191774&r2=191775
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Sat May  2 13:39:48 2009
@@ -623,14 +623,13 @@
 				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);
 




More information about the asterisk-commits mailing list