adelapena commented on code in PR #1891:
URL: https://github.com/apache/cassandra/pull/1891#discussion_r1122890854


##########
src/java/org/apache/cassandra/db/rows/UnfilteredSerializer.java:
##########
@@ -587,7 +588,10 @@ public Row deserializeRowBody(DataInputPlus in,
             {
                 long timestamp = header.readTimestamp(in);
                 int ttl = hasTTL ? header.readTTL(in) : LivenessInfo.NO_TTL;
-                int localDeletionTime = hasTTL ? 
header.readLocalDeletionTime(in) : LivenessInfo.NO_EXPIRATION_TIME;
+                long localDeletionTime = hasTTL ? 
header.readLocalDeletionTime(in) : LivenessInfo.NO_EXPIRATION_TIME;
+                if (localDeletionTime < 0)
+                    localDeletionTime = helper.version < 
MessagingService.VERSION_42 ? Cell.LEGACY_OVERFLOWED_DELETION_TIME : 
Cell.deletionTimeUnsignedIntegerToLong((int) localDeletionTime);

Review Comment:
   Great, thanks. Just a trivial nit, there is a missed space right before the 
`<` operator.



-- 
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]

Reply via email to