cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdeggleston <...@git.apache.org>
Subject [GitHub] cassandra pull request #224: 14405 replicas
Date Thu, 17 May 2018 22:14:48 GMT
Github user bdeggleston commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/224#discussion_r189117005
  
    --- Diff: src/java/org/apache/cassandra/service/StorageProxy.java ---
    @@ -503,12 +498,12 @@ private static void sendCommit(Commit commit, Iterable<InetAddressAndPort>
repli
                 MessagingService.instance().sendOneWay(message, target);
         }
     
    -    private static PrepareCallback preparePaxos(Commit toPrepare, List<InetAddressAndPort>
endpoints, int requiredParticipants, ConsistencyLevel consistencyForPaxos, long queryStartNanoTime)
    +    private static PrepareCallback preparePaxos(Commit toPrepare, ReplicaList replicas,
int requiredParticipants, ConsistencyLevel consistencyForPaxos, long queryStartNanoTime)
         throws WriteTimeoutException
         {
             PrepareCallback callback = new PrepareCallback(toPrepare.update.partitionKey(),
toPrepare.update.metadata(), requiredParticipants, consistencyForPaxos, queryStartNanoTime);
             MessageOut<Commit> message = new MessageOut<Commit>(MessagingService.Verb.PAXOS_PREPARE,
toPrepare, Commit.serializer);
    -        for (InetAddressAndPort target : endpoints)
    +        for (InetAddressAndPort target : replicas.asEndpoints())
    --- End diff --
    
    fixed


---

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


Mime
View raw message