We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f32a0 commit ba62ff6Copy full SHA for ba62ff6
server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java
@@ -4505,7 +4505,7 @@ private Collection<LongWithAttributes> getShardsByState() {
4505
for (SnapshotsInProgress.Entry snapshot : snapshotsInProgress.forRepo(projectId, repository.name())) {
4506
for (ShardSnapshotStatus shardSnapshotStatus : snapshot.shards().values()) {
4507
if (shardCounts.containsKey(shardSnapshotStatus.state())) {
4508
- shardCounts.put(shardSnapshotStatus.state(), shardCounts.get(shardSnapshotStatus.state()) + 1);
+ shardCounts.addTo(shardSnapshotStatus.state(), 1);
4509
}
4510
4511
0 commit comments