There was an error while loading. Please reload this page.
1 parent 4714328 commit 9824022Copy full SHA for 9824022
modules/repository-azure/src/main/java/org/elasticsearch/repositories/azure/AzureBlobStore.java
@@ -749,9 +749,7 @@ BlobStoreActionStats getEndpointStats() {
749
}
750
751
BlobStoreActionStats addTo(BlobStoreActionStats other) {
752
- final long ops = Math.addExact(operations.sum(), other.operations());
753
- final long reqs = Math.addExact(requests.sum(), +other.requests());
754
- return new BlobStoreActionStats(ops, reqs);
+ return new BlobStoreActionStats(operations.sum(), requests.sum()).add(other);
755
756
757
0 commit comments