Skip to content

Commit 4acc5b4

Browse files
committed
initBlockPool do not need modify
1 parent 375fab3 commit 4acc5b4

File tree

1 file changed

+1
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/ReplicaMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void initBlockPool(String bpid) {
269269
if (m == null) {
270270
// Add an entry for block pool if it does not exist already
271271
m = new LightWeightResizableGSet<Block, ReplicaInfo>();
272-
map.putIfAbsent(bpid, m);
272+
map.put(bpid, m);
273273
}
274274
}
275275
}

0 commit comments

Comments
 (0)