tookInMillis is not serialized over network for bulk response

This commit is contained in:
kimchy 2011-01-26 22:41:41 +02:00
parent 6c21c30f31
commit c7e73e4558
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,7 @@ public class BulkResponse implements ActionResponse, Iterable<BulkItemResponse>
for (int i = 0; i < responses.length; i++) {
responses[i] = BulkItemResponse.readBulkItem(in);
}
tookInMillis = in.readVLong();
}
@Override public void writeTo(StreamOutput out) throws IOException {
@ -126,5 +127,6 @@ public class BulkResponse implements ActionResponse, Iterable<BulkItemResponse>
for (BulkItemResponse response : responses) {
response.writeTo(out);
}
out.writeVLong(tookInMillis);
}
}