ARTEMIS-1056 Fixing AutomaticColocatedQuorumVoteTest
This commit is contained in:
parent
a03c61fc7b
commit
633b9c75dd
|
@ -17,6 +17,7 @@
|
|||
package org.apache.activemq.artemis.core.protocol.core.impl.wireformat;
|
||||
|
||||
import org.apache.activemq.artemis.api.core.ActiveMQBuffer;
|
||||
import org.apache.activemq.artemis.api.core.ActiveMQBuffers;
|
||||
import org.apache.activemq.artemis.api.core.SimpleString;
|
||||
import org.apache.activemq.artemis.core.protocol.core.impl.PacketImpl;
|
||||
import org.apache.activemq.artemis.core.server.cluster.qourum.QuorumVoteHandler;
|
||||
|
@ -57,7 +58,8 @@ public class QuorumVoteMessage extends PacketImpl {
|
|||
public void decodeRest(ActiveMQBuffer buffer) {
|
||||
super.decodeRest(buffer);
|
||||
handler = buffer.readSimpleString();
|
||||
voteBuffer = buffer.readSlice(buffer.readableBytes());
|
||||
voteBuffer = ActiveMQBuffers.fixedBuffer(buffer.readableBytes());
|
||||
buffer.readBytes(voteBuffer);
|
||||
}
|
||||
|
||||
public SimpleString getHandler() {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
package org.apache.activemq.artemis.core.protocol.core.impl.wireformat;
|
||||
|
||||
import org.apache.activemq.artemis.api.core.ActiveMQBuffer;
|
||||
import org.apache.activemq.artemis.api.core.ActiveMQBuffers;
|
||||
import org.apache.activemq.artemis.api.core.SimpleString;
|
||||
import org.apache.activemq.artemis.core.protocol.core.impl.PacketImpl;
|
||||
import org.apache.activemq.artemis.core.server.cluster.qourum.QuorumVoteHandler;
|
||||
|
@ -62,7 +63,8 @@ public class QuorumVoteReplyMessage extends PacketImpl {
|
|||
public void decodeRest(ActiveMQBuffer buffer) {
|
||||
super.decodeRest(buffer);
|
||||
handler = buffer.readSimpleString();
|
||||
voteBuffer = buffer.readSlice(buffer.readableBytes());
|
||||
voteBuffer = ActiveMQBuffers.fixedBuffer(buffer.readableBytes());
|
||||
buffer.readBytes(voteBuffer);
|
||||
}
|
||||
|
||||
public void decodeRest(QuorumVoteHandler voteHandler) {
|
||||
|
|
Loading…
Reference in New Issue