mirror of https://github.com/apache/activemq.git
[AMQ-6644] - ensure journal files past last update are not included in the logged gc set in error
This commit is contained in:
parent
8b064889c6
commit
c1cbf509da
|
@ -1742,7 +1742,8 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
|||
}
|
||||
|
||||
if (lastUpdate != null) {
|
||||
gcCandidateSet.remove(lastUpdate.getDataFileId());
|
||||
// we won't delete past the last update, ackCompaction journal can be a candidate in error
|
||||
gcCandidateSet.removeAll(new TreeSet<Integer>(gcCandidateSet.tailSet(lastUpdate.getDataFileId())));
|
||||
}
|
||||
|
||||
// Don't GC files under replication
|
||||
|
|
Loading…
Reference in New Issue