dcapwell commented on code in PR #4220:
URL: https://github.com/apache/cassandra/pull/4220#discussion_r2205898114
##########
src/java/org/apache/cassandra/db/Mutation.java:
##########
@@ -552,17 +570,18 @@ private Serialization serialization(Mutation mutation,
int version)
}
static void
serializeInternal(PartitionUpdate.PartitionUpdateSerializer serializer,
- Mutation mutation,
- DataOutputPlus out,
- int version) throws IOException
+ Mutation mutation,
+ DataOutputPlus out,
+ int version) throws IOException
{
Map<TableId, PartitionUpdate> modifications =
mutation.modifications;
if (version >= VERSION_51)
{
int flags = 0;
flags |=
potentialTxnConflictsFlag(mutation.potentialTxnConflicts);
- out.write(flags);
+ flags |= userTimestampFlag(mutation.userTimestamp);
+ out.writeUnsignedVInt32(flags);
Review Comment:
rather than write 4 bytes, write 1.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]