Skip to content

Commit b6d6445

Browse files
committed
Change
1 parent 5aedd0c commit b6d6445

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/index/translog/TranslogHeaderWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ private static void writeFastIndexHeader(RecyclerBytesStreamOutput buffer, Trans
6666

6767
BytesReference source = index.source();
6868
int sourceLength = source == null ? 0 : source.length();
69+
// We write this so that we have a fully serialized header ready to append the source to. This allows us to fully calculate the
70+
// checksum
6971
buffer.writeVInt(sourceLength);
7072

7173
int variableLengthSize = (int) (buffer.position() - variableLengthStart);

0 commit comments

Comments
 (0)