mirror of https://github.com/apache/activemq.git
Merge pull request #495 from jbonofre/AMQ-7425
[AMQ-7425] Simple fix to be sure to delete message from JDBC message store
This commit is contained in:
commit
e20ef34ae0
|
@ -254,7 +254,7 @@ public class JDBCMessageStore extends AbstractMessageStore {
|
|||
@Override
|
||||
public void removeMessage(ConnectionContext context, MessageAck ack) throws IOException {
|
||||
|
||||
long seq = ack.getLastMessageId().getFutureOrSequenceLong() != null ?
|
||||
long seq = (ack.getLastMessageId().getFutureOrSequenceLong() != null && ((Long) ack.getLastMessageId().getFutureOrSequenceLong() != 0)) ?
|
||||
(Long) ack.getLastMessageId().getFutureOrSequenceLong() :
|
||||
persistenceAdapter.getStoreSequenceIdForMessageId(context, ack.getLastMessageId(), destination)[0];
|
||||
|
||||
|
|
Loading…
Reference in New Issue