cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-10749) DeletionTime.compareTo wrong ??
Date Wed, 25 Nov 2015 16:11:11 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-10749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-10749:
-----------------------------------------
    Reviewer: Sylvain Lebresne

> DeletionTime.compareTo wrong ??
> -------------------------------
>
>                 Key: CASSANDRA-10749
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10749
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>            Priority: Minor
>
> {{org.apache.cassandra.db.DeletionTime#compareTo}} looks like this:
> {code}
>     public int compareTo(DeletionTime dt)
>     {
>         if (markedForDeleteAt() < dt.markedForDeleteAt())
>             return -1;
>         else if (markedForDeleteAt() > dt.markedForDeleteAt())
>             return 1;
>         else if (localDeletionTime() < dt.localDeletionTime())
>             return -1;
>         else if (localDeletionTime() > dt.localDeletionTime())
>             return -1;
>         else
>             return 0;
>     }
> {code}
> I think that {{localDeletionTime() > dt.localDeletionTime()}} should return {{1}},
but I'm not sure. /cc [~slebresne]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message