[ 
https://issues.apache.org/jira/browse/CASSANDRA-17164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481981#comment-17481981
 ] 

Benedict Elliott Smith edited comment on CASSANDRA-17164 at 1/25/22, 5:21 PM:
------------------------------------------------------------------------------

But this is only an optimisation, I think that would be equivalent to just 
removing the condition and ternary operator entirely, and simply returning 
{{latest(promised, latestWriteOrLowBound)}}? 

i.e. on entry {{latestWriteOrLowBound >= promisedWrite}} so this is just a 
single instruction short-circuit permitting us to avoid evaluating 
{{Ballot#compareTo}}


was (Author: benedict):
But this is only an optimisation, I think that would be equivalent to just 
removing the condition and ternary operator entirely, and saying 
{{latest(promised, latestWriteOrLowBound)}}? i.e. {{latestWriteOrLowBound}} 
already is greater than or equal to {{promisedWrite}} so this is just a single 
instruction short-circuit permitting us to avoid evaluating {{Ballot#compareTo}}

> CEP-14: Paxos Improvements
> --------------------------
>
>                 Key: CASSANDRA-17164
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17164
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Consistency/Coordination, Consistency/Repair
>            Reporter: Benedict Elliott Smith
>            Assignee: Benedict Elliott Smith
>            Priority: Normal
>             Fix For: 4.1
>
>
> This ticket encompasses work for [CEP-14|
> https://cwiki.apache.org/confluence/display/CASSANDRA/CEP-14%3A+Paxos+Improvements].



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to