mirror of https://github.com/apache/activemq.git
Honnor the QoS requested by the client when replicating to the slave broker.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@405806 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3b973bce32
commit
7947655e5f
|
@ -328,7 +328,7 @@ public class MasterBroker extends InsertableMutableBrokerFilter{
|
|||
|
||||
protected void sendToSlave(Message message){
|
||||
|
||||
if (message.isPersistent() && !message.isInTransaction()){
|
||||
if ( message.isResponseRequired() ){
|
||||
sendSyncToSlave(message);
|
||||
}else{
|
||||
sendAsyncToSlave(message);
|
||||
|
@ -338,8 +338,7 @@ public class MasterBroker extends InsertableMutableBrokerFilter{
|
|||
}
|
||||
|
||||
protected void sendToSlave(MessageAck ack){
|
||||
|
||||
if (ack.isInTransaction()){
|
||||
if ( ack.isResponseRequired() ){
|
||||
sendAsyncToSlave(ack);
|
||||
}else{
|
||||
sendSyncToSlave(ack);
|
||||
|
|
Loading…
Reference in New Issue