beobal commented on a change in pull request #1160:
URL: https://github.com/apache/cassandra/pull/1160#discussion_r696006742



##########
File path: 
src/java/org/apache/cassandra/service/reads/range/RangeCommandIterator.java
##########
@@ -176,34 +176,36 @@ static int computeConcurrencyFactor(int totalRangeCount, 
int rangesQueried, int
     private SingleRangeResponse query(ReplicaPlan.ForRangeRead replicaPlan, 
boolean isFirst)
     {
         PartitionRangeReadCommand rangeCommand = 
command.forSubRange(replicaPlan.range(), isFirst);
+        
+        boolean trackRepairedStatus = false;
+        
         // If enabled, request repaired data tracking info from full replicas 
but
         // only if there are multiple full replicas to compare results from
         if (DatabaseDescriptor.getRepairedDataTrackingForRangeReadsEnabled()
             && replicaPlan.contacts().filter(Replica::isFull).size() > 1)
         {
-            command.trackRepairedStatus();
-            rangeCommand.trackRepairedStatus();
+            trackRepairedStatus = true;

Review comment:
       nit: can initialize according to the condition at declaration.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to