mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3362 - check expired messages only for inactive durable subs
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1138925 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
984a9fb1c3
commit
b78867e183
|
@ -539,8 +539,10 @@ public class Topic extends BaseDestination implements Task {
|
|||
topicStore.recover(new MessageRecoveryListener() {
|
||||
public boolean recoverMessage(Message message) throws Exception {
|
||||
if (message.isExpired()) {
|
||||
for (Subscription sub : durableSubcribers.values()) {
|
||||
messageExpired(connectionContext, sub, message);
|
||||
for (DurableTopicSubscription sub : durableSubcribers.values()) {
|
||||
if (!sub.isActive()) {
|
||||
messageExpired(connectionContext, sub, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
result.add(message);
|
||||
|
|
Loading…
Reference in New Issue