From 51b3a3806495ff5acdfca91b5be4ad6541e68836 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Tue, 26 Sep 2017 01:25:07 +0900 Subject: [PATCH] HDFS-12304. Remove unused parameter from FsDatasetImpl#addVolume. Contributed by Chen Liang. (cherry picked from commit 02e2a9b1152b0e144fcf43bec2fce26d8a6c6dbc) --- .../hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java index 16df7091da7..41c41e6ed6b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java @@ -315,7 +315,7 @@ class FsDatasetImpl implements FsDatasetSpi { deletingBlock = new HashMap>(); for (int idx = 0; idx < storage.getNumStorageDirs(); idx++) { - addVolume(dataLocations, storage.getStorageDir(idx)); + addVolume(storage.getStorageDir(idx)); } setupAsyncLazyPersistThreads(); @@ -413,8 +413,7 @@ class FsDatasetImpl implements FsDatasetSpi { } } - private void addVolume(Collection dataLocations, - Storage.StorageDirectory sd) throws IOException { + private void addVolume(Storage.StorageDirectory sd) throws IOException { final StorageLocation storageLocation = sd.getStorageLocation(); // If IOException raises from FsVolumeImpl() or getVolumeMap(), there is