mirror of https://github.com/apache/activemq.git
Fix RecoveryBrokerTest that I messed up :)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@491452 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b91103a830
commit
a810f4300a
|
@ -48,7 +48,7 @@ class TopicStorePrefetch extends AbstractPendingMessageCursor implements
|
|||
private String subscriberName;
|
||||
private Destination regionDestination;
|
||||
|
||||
boolean empty=true;
|
||||
boolean empty;
|
||||
private MessageId firstMessageId;
|
||||
private MessageId lastMessageId;
|
||||
|
||||
|
@ -65,7 +65,16 @@ class TopicStorePrefetch extends AbstractPendingMessageCursor implements
|
|||
this.subscriberName=subscriberName;
|
||||
}
|
||||
|
||||
public void start() throws Exception{
|
||||
public void start() throws Exception {
|
||||
if(batchList.isEmpty()){
|
||||
try{
|
||||
fillBatch();
|
||||
}catch(Exception e){
|
||||
log.error("Failed to fill batch",e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
empty = batchList.isEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
public void stop() throws Exception{
|
||||
|
|
Loading…
Reference in New Issue