Skip to content

Commit 87658be

Browse files
committed
HDFS-17813. NameCache promote wrong name to cache map
1 parent d916f26 commit 87658be

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ K put(final K name) {
108108
if (useCount != null) {
109109
useCount.increment();
110110
if (useCount.get() >= useThreshold) {
111-
promote(name);
111+
promote(useCount.value);
112112
}
113113
return useCount.value;
114114
}

0 commit comments

Comments
 (0)