HDFS-13036. Reusing the volume storage ID obtained by replicaInfo. Contributed by liaoyuxiangqin.
This commit is contained in:
parent
2ed9d61aad
commit
62c9e7fa99
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue