Github user aweisberg commented on a diff in the pull request:
https://github.com/apache/cassandra/pull/239#discussion_r202478981
--- Diff:
src/java/org/apache/cassandra/db/streaming/CassandraStreamHeader.java ---
@@ -168,10 +232,35 @@ public void serialize(CassandraStreamHeader header,
DataOutputPlus out, int vers
header.calculateCompressionInfo();
CompressionInfo.serializer.serialize(header.compressionInfo,
out, version);
out.writeInt(header.sstableLevel);
+
SerializationHeader.serializer.serialize(header.version,
header.header, out);
+
+ header.tableId.serialize(out);
+ out.writeBoolean(header.fullStream);
+
+ if (header.fullStream)
+ {
+ out.writeInt(header.components.size());
+ for (ComponentInfo info : header.components)
+ ComponentInfo.serializer.serialize(info, out, version);
+
+
ByteBufferUtil.writeWithShortLength(header.firstKey.getKey(), out);
--- End diff --
It's fine I forgot that the keys are hashes so they will always be fixed
size and small.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]