1
0
Просмотр исходного кода

HDFS-15319. Fix INode#isInLatestSnapshot() API. Contributed by Shashikant Banerjee.

Shashikant Banerjee 4 лет назад
Родитель
Сommit
85d4718ed7

+ 0 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java

@@ -254,8 +254,6 @@ public abstract class INode implements INodeAttributes, Diff.Element<byte[]> {
     // if parent is a reference node, parent must be a renamed node. We can 
     // stop the check at the reference node.
     if (parent != null && parent.isReference()) {
-      // TODO: Is it a bug to return true?
-      //       Some ancestor nodes may not be in the latest snapshot.
       return true;
     }
     final INodeDirectory parentDir = getParent();