mirror of https://github.com/apache/activemq.git
[AMQ-7394] use canRecoveryNextMessage to base blocking on shared usage, the existing fix regressed AMQ5266Test
This commit is contained in:
parent
8bedeb4b9b
commit
96fa8458ce
|
@ -367,7 +367,7 @@ public class JDBCMessageStore extends AbstractMessageStore {
|
|||
|
||||
@Override
|
||||
public boolean recoverMessage(long sequenceId, byte[] data) throws Exception {
|
||||
if (listener.hasSpace()) {
|
||||
if (listener.canRecoveryNextMessage()) {
|
||||
Message msg = (Message) wireFormat.unmarshal(new ByteSequence(data));
|
||||
msg.getMessageId().setBrokerSequenceId(sequenceId);
|
||||
msg.getMessageId().setFutureOrSequenceLong(sequenceId);
|
||||
|
|
Loading…
Reference in New Issue