From 02e2a9b1152b0e144fcf43bec2fce26d8a6c6dbc 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. --- .../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 16df7091da..41c41e6ed6 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 @@ public LengthInputStream getMetaDataInputStream(ExtendedBlock b) 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 @@ private void activateVolume( } } - 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