HDFS-13036. Reusing the volume storage ID obtained by replicaInfo. Contributed by liaoyuxiangqin.

This commit is contained in:
Chen Liang 2018-01-19 17:51:53 -08:00
parent 2ed9d61aad
commit 62c9e7fa99
1 changed files with 2 additions and 2 deletions

View File

@ -1777,11 +1777,11 @@ class FsDatasetImpl implements FsDatasetSpi<FsVolumeImpl> {
case FINALIZED: case FINALIZED:
case RBW: case RBW:
case RWR: case RWR:
builders.get(b.getVolume().getStorageID()).add(b); builders.get(volStorageID).add(b);
break; break;
case RUR: case RUR:
ReplicaInfo orig = b.getOriginalReplica(); ReplicaInfo orig = b.getOriginalReplica();
builders.get(b.getVolume().getStorageID()).add(orig); builders.get(volStorageID).add(orig);
break; break;
case TEMPORARY: case TEMPORARY:
break; break;