You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by jh...@apache.org on 2017/09/28 02:55:03 UTC
[12/50] [abbrv] hadoop git commit: HDFS-12304. Remove unused
parameter from FsDatasetImpl#addVolume. Contributed by Chen Liang.
HDFS-12304. Remove unused parameter from FsDatasetImpl#addVolume. Contributed by Chen Liang.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/02e2a9b1
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/02e2a9b1
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/02e2a9b1
Branch: refs/heads/YARN-5734
Commit: 02e2a9b1152b0e144fcf43bec2fce26d8a6c6dbc
Parents: 0807470
Author: Akira Ajisaka <aa...@apache.org>
Authored: Tue Sep 26 01:25:07 2017 +0900
Committer: Akira Ajisaka <aa...@apache.org>
Committed: Tue Sep 26 01:25:07 2017 +0900
----------------------------------------------------------------------
.../hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/02e2a9b1/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java
----------------------------------------------------------------------
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 16df709..41c41e6 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<FsVolumeImpl> {
deletingBlock = new HashMap<String, Set<Long>>();
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<FsVolumeImpl> {
}
}
- private void addVolume(Collection<StorageLocation> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org