Also serialize the routing and preference

This commit is contained in:
Martijn van Groningen 2013-07-22 15:16:29 +02:00
parent d310b94904
commit 2f7d1189b1
1 changed files with 6 additions and 2 deletions

View File

@ -170,17 +170,21 @@ public class PercolateRequest extends BroadcastOperationRequest<PercolateRequest
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
startTime = in.readVLong();
documentType = in.readString();
routing = in.readOptionalString();
preference = in.readOptionalString();
documentUnsafe = false;
documentSource = in.readBytesReference();
startTime = in.readVLong();
}
@Override
public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out);
out.writeVLong(startTime);
out.writeString(documentType);
out.writeOptionalString(routing);
out.writeOptionalString(preference);
out.writeBytesReference(documentSource);
out.writeVLong(startTime);
}
}