skip key bytes when the replication entry is a delete

This commit is contained in:
epickrram
2017-07-14 13:21:56 +01:00
parent abe4297c9e
commit 679e156da2
@@ -58,11 +58,11 @@ public abstract class ReplicatedInput<K, V, R> implements RemoteOperationContext
long keyOffset = replicatedInputBytes.readPosition();
q.initInputKey(q.getInputKeyBytesAsData(replicatedInputBytes, keyOffset, keySize));
replicatedInputBytes.readSkip(keySize);
if (isDeleted) {
s.innerUpdateLock.lock();
mh.m().remoteOperations.remove(this);
} else {
replicatedInputBytes.readSkip(keySize);
long valueSize = mh.m().valueSizeMarshaller.readSize(replicatedInputBytes);
long valueOffset = replicatedInputBytes.readPosition();
Data<V> value = q.wrapValueBytesAsData(replicatedInputBytes, valueOffset, valueSize);