bereng commented on code in PR #3987:
URL: https://github.com/apache/cassandra/pull/3987#discussion_r2000291297


##########
src/java/org/apache/cassandra/db/rows/BTreeRow.java:
##########
@@ -399,9 +399,9 @@ public boolean hasComplex()
 
     public boolean hasComplexDeletion()
     {
-        long result = accumulate((cd, v) -> ((ComplexColumnData) 
cd).complexDeletion().isLive() ? 0 : Cell.MAX_DELETION_TIME,
+        long result = accumulate((cd, v) -> ((ComplexColumnData) 
cd).complexDeletion().isLive() ? 0 : Long.MAX_VALUE,
                                  COLUMN_COMPARATOR, isStatic() ? 
FIRST_COMPLEX_STATIC : FIRST_COMPLEX_REGULAR, 0L);
-        return result == Cell.MAX_DELETION_TIME;
+        return result == Long.MAX_VALUE;

Review Comment:
   So when working on 14227 the whole code was littered with magical sentinel 
values and it was very difficult to make sense of things. I did my best to 
provide semantic meaning to those with proper constant names and apparently 
broke this one. Could you name this sthg meaningful?



-- 
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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to