Skip to content

Commit

Permalink
Remove redundant code in StorageProxy#sendToHintedReplicas
Browse files Browse the repository at this point in the history
patch by Ling Mao; reviewed by Stefan Miklosovic, Brandon Williams and Maxwell Guo for CASSANDRA-19412
  • Loading branch information
maoling authored and smiklosovic committed Feb 22, 2024
1 parent 98d0e18 commit 8c4a58f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
@@ -1,4 +1,5 @@
4.0.13
* Remove redundant code in StorageProxy#sendToHintedReplicas (CASSANDRA-19412)
* Remove bashisms for mx4j tool in cassandra-env.sh (CASSANDRA-19416)
* Add new concurrent_merkle_tree_requests config property to prevent OOM during multi-range and/or multi-table repairs (CASSANDRA-19336)
Merged from 3.11:
Expand Down
7 changes: 0 additions & 7 deletions src/java/org/apache/cassandra/service/StorageProxy.java
Expand Up @@ -1367,8 +1367,6 @@ public static void sendToHintedReplicas(final Mutation mutation,
Replica localReplica = null;
Collection<Replica> endpointsToHint = null;

List<InetAddressAndPort> backPressureHosts = null;

for (Replica destination : plan.contacts())
{
checkHintOverload(destination);
Expand Down Expand Up @@ -1408,11 +1406,6 @@ public static void sendToHintedReplicas(final Mutation mutation,

messages.add(destination);
}

if (backPressureHosts == null)
backPressureHosts = new ArrayList<>(plan.contacts().size());

backPressureHosts.add(destination.endpoint());
}
}
else
Expand Down

0 comments on commit 8c4a58f

Please sign in to comment.