Addendum fix for HDFS-9314 to fix compilation error caused by diamond operator.
Change-Id: Ia8b8142c2cd3b5ec413a7da2bf037be64040dc85
This commit is contained in:
parent
4c631e8c73
commit
203c7a648b
|
@ -1019,7 +1019,7 @@ public class BlockPlacementPolicyDefault extends BlockPlacementPolicy {
|
||||||
Collection<DatanodeStorageInfo> moreThanOne,
|
Collection<DatanodeStorageInfo> moreThanOne,
|
||||||
Collection<DatanodeStorageInfo> exactlyOne,
|
Collection<DatanodeStorageInfo> exactlyOne,
|
||||||
Map<String, List<DatanodeStorageInfo>> rackMap) {
|
Map<String, List<DatanodeStorageInfo>> rackMap) {
|
||||||
Collection<DatanodeStorageInfo> ret = new ArrayList<>();
|
Collection<DatanodeStorageInfo> ret = new ArrayList<DatanodeStorageInfo>();
|
||||||
if (rackMap.size() == 2) {
|
if (rackMap.size() == 2) {
|
||||||
for (List<DatanodeStorageInfo> dsi : rackMap.values()) {
|
for (List<DatanodeStorageInfo> dsi : rackMap.values()) {
|
||||||
if (dsi.size() >= 2) {
|
if (dsi.size() >= 2) {
|
||||||
|
|
Loading…
Reference in New Issue