mirror of https://github.com/apache/activemq.git
handle Future correctly passed back from the store
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@955221 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ddf228227c
commit
1999d948bb
|
@ -419,7 +419,7 @@ public class Topic extends BaseDestination implements Task {
|
|||
|
||||
waitForSpace(context, systemUsage.getStoreUsage(), getStoreUsageHighWaterMark(), logMessage);
|
||||
}
|
||||
topicStore.asyncAddTopicMessage(context, message);
|
||||
result = topicStore.asyncAddTopicMessage(context, message);
|
||||
}
|
||||
|
||||
message.incrementReferenceCount();
|
||||
|
|
|
@ -182,8 +182,7 @@ public class KahaDBTransactionStore implements TransactionStore {
|
|||
|
||||
@Override
|
||||
public Future<Object> asyncAddTopicMessage(ConnectionContext context, Message message) throws IOException {
|
||||
KahaDBTransactionStore.this.asyncAddTopicMessage(context, getDelegate(), message);
|
||||
return AbstractMessageStore.FUTURE;
|
||||
return KahaDBTransactionStore.this.asyncAddTopicMessage(context, getDelegate(), message);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue