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

View File

@ -1777,11 +1777,11 @@ public Map<DatanodeStorage, BlockListAsLongs> getBlockReports(String bpid) {
case FINALIZED:
case RBW:
case RWR:
builders.get(b.getVolume().getStorageID()).add(b);
builders.get(volStorageID).add(b);
break;
case RUR:
ReplicaInfo orig = b.getOriginalReplica();
builders.get(b.getVolume().getStorageID()).add(orig);
builders.get(volStorageID).add(orig);
break;
case TEMPORARY:
break;