logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1124535 - /logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
Date Thu, 19 May 2011 04:51:29 GMT
Author: rgoers
Date: Thu May 19 04:51:29 2011
New Revision: 1124535

URL: http://svn.apache.org/viewvc?rev=1124535&view=rev
Log:
Wait forever for compress thread

Modified:
    logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java

Modified: logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java?rev=1124535&r1=1124534&r2=1124535&view=diff
==============================================================================
--- logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
(original)
+++ logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
Thu May 19 04:51:29 2011
@@ -102,10 +102,9 @@ public class RollingFileManager extends 
     private boolean rollover(RolloverStrategy strategy) {
 
         try {
-            /* Block until the asynchronous operation is completed. If it takes too long
then
-               don't roll over.
+            /* Block until the asynchronous operation is completed.
              */
-            if (queue.poll(100, TimeUnit.MILLISECONDS) == null) {
+            if (queue.take() == null) {
                 logger.error("Unable to acquire lock for rollover");
                 return false;
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message