Github user belliottsmith commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/273#discussion_r219557250
  
    --- Diff: 
src/java/org/apache/cassandra/utils/streamhist/StreamingTombstoneHistogramBuilder.java
 ---
    @@ -595,12 +600,22 @@ private boolean tryCell(int cell, int point, int 
delta)
             }
         }
     
    -    private static int roundKey(int p, int roundSeconds)
    +    private static int roundKey(int point, int roundSeconds)
         {
    -        int d = p % roundSeconds;
    +        int d = point % roundSeconds;
             if (d > 0)
    -            return p + (roundSeconds - d);
    +        {
    +            point += roundSeconds - d;
    +            if (point == Cell.MAX_DELETION_TIME)
    +                // the rounding should not be a reason to mark point as 
unexpirable
    +                point =  Cell.MAX_DELETION_TIME;
    --- End diff --
    
    why assign `point =` here, but `return` below?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to