HDFS-12304. Remove unused parameter from FsDatasetImpl#addVolume. Contributed by Chen Liang.

This commit is contained in:
Akira Ajisaka 2017-09-26 01:25:07 +09:00
parent 0807470808
commit 02e2a9b115
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 2 additions and 3 deletions

View File

@ -315,7 +315,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
deletingBlock = new HashMap<String, Set<Long>>(); deletingBlock = new HashMap<String, Set<Long>>();
for (int idx = 0; idx < storage.getNumStorageDirs(); idx++) { for (int idx = 0; idx < storage.getNumStorageDirs(); idx++) {
addVolume(dataLocations, storage.getStorageDir(idx)); addVolume(storage.getStorageDir(idx));
} }
setupAsyncLazyPersistThreads(); setupAsyncLazyPersistThreads();
@ -413,8 +413,7 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
} }
} }
private void addVolume(Collection<StorageLocation> dataLocations, private void addVolume(Storage.StorageDirectory sd) throws IOException {
Storage.StorageDirectory sd) throws IOException {
final StorageLocation storageLocation = sd.getStorageLocation(); final StorageLocation storageLocation = sd.getStorageLocation();
// If IOException raises from FsVolumeImpl() or getVolumeMap(), there is // If IOException raises from FsVolumeImpl() or getVolumeMap(), there is