mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.0@413522 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3756ee2d3a
commit
10302dd92e
|
@ -415,7 +415,7 @@ final public class LogFileManager {
|
||||||
// Are we overflowing into next logFile?
|
// Are we overflowing into next logFile?
|
||||||
if (offset >= ri.getLogFileState().getAppendOffset()) {
|
if (offset >= ri.getLogFileState().getAppendOffset()) {
|
||||||
LogFileNode nextActive = ri.getLogFileState().getNextActive();
|
LogFileNode nextActive = ri.getLogFileState().getNextActive();
|
||||||
if (nextActive == null) {
|
if (nextActive == null || nextActive.getId() <= ri.getLogFileState().getId() ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
logFileId = nextActive.getId();
|
logFileId = nextActive.getId();
|
||||||
|
|
Loading…
Reference in New Issue