activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r413521 - /incubator/activemq/trunk/activeio/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java
Date Sun, 11 Jun 2006 19:31:52 GMT
Author: chirino
Date: Sun Jun 11 12:31:52 2006
New Revision: 413521

URL: http://svn.apache.org/viewvc?rev=413521&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-732

Modified:
    incubator/activemq/trunk/activeio/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java

Modified: incubator/activemq/trunk/activeio/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activeio/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java?rev=413521&r1=413520&r2=413521&view=diff
==============================================================================
--- incubator/activemq/trunk/activeio/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java
(original)
+++ incubator/activemq/trunk/activeio/activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java
Sun Jun 11 12:31:52 2006
@@ -415,7 +415,7 @@
             // Are we overflowing into next logFile?
             if (offset >= ri.getLogFileState().getAppendOffset()) {
                 LogFileNode nextActive = ri.getLogFileState().getNextActive();
-                if (nextActive == null) {
+                if (nextActive == null || nextActive.getId() <= ri.getLogFileState().getId()
) {
                     return null;
                 }
                 logFileId = nextActive.getId();



Mime
View raw message