Description
When i read the getBlockReports() of FsDatasetImpl class in datanode, i found the following case code could be more simplify and need't to obtained volume storage ID by replicaInfo again and again, because the vol id have get by above code.Thanks.
FsDatasetImpl.java
switch(b.getState()) { case FINALIZED: case RBW: case RWR: builders.get(b.getVolume().getStorageID()).add(b); break; case RUR: ReplicaInfo orig = b.getOriginalReplica(); builders.get(b.getVolume().getStorageID()).add(orig); break; case TEMPORARY: break; default: assert false : "Illegal ReplicaInfo state."; }