Skip to content

Commit 5855790

Browse files
committed
HADOOP-16830. S3AInstrumentation: inline a variable.
Change-Id: I5f6afb156c26783bc4bd488b8be55830c80e1746
1 parent 0ced163 commit 5855790

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AInstrumentation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,13 +1108,12 @@ public void unbuffered() {
11081108
*/
11091109
private void merge(boolean isClosed) {
11101110

1111-
final IOStatisticsStore localIOStats = this.getIOStatistics();
1112-
IOStatisticsStore ioStatistics = localIOStats;
1111+
IOStatisticsStore ioStatistics = this.getIOStatistics();
11131112
LOG.debug("Merging statistics into FS statistics in {}: {}",
11141113
(isClosed ? "close()" : "unbuffer()"),
11151114
demandStringifyIOStatistics(ioStatistics));
11161115
promoteInputStreamCountersToMetrics();
1117-
mergedStats = snapshotIOStatistics(localIOStats);
1116+
mergedStats = snapshotIOStatistics(this.getIOStatistics());
11181117

11191118
if (isClosed) {
11201119
// stream is being closed.

0 commit comments

Comments
 (0)