adelapena commented on code in PR #1891:
URL: https://github.com/apache/cassandra/pull/1891#discussion_r1134055977
##########
src/java/org/apache/cassandra/db/rows/Cell.java:
##########
@@ -42,8 +44,15 @@
public abstract class Cell<V> extends ColumnData
{
public static final int NO_TTL = 0;
- public static final int NO_DELETION_TIME = Integer.MAX_VALUE;
- public static final int MAX_DELETION_TIME = Integer.MAX_VALUE - 1;
+ public static final long NO_DELETION_TIME = Long.MAX_VALUE;
+ public static final int NO_DELETION_TIME_UNSIGNED_INTEGER =
CassandraUInt.MAX_VALUE_UINT;
+ public static final long MAX_DELETION_TIME = CassandraUInt.MAX_VALUE_LONG
- 2;
+ public static final int MAX_DELETION_TIME_UNSIGNED_INTEGER =
CassandraUInt.fromLong(MAX_DELETION_TIME);
Review Comment:
It seems that the only user of `MAX_DELETION_TIME_UNSIGNED_INTEGER` is
`DeletionTime`. So we might want to move the constant to that class and make it
`private`.
--
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]