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 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user