Skip to content

Commit 85d4718

Browse files
committed
HDFS-15319. Fix INode#isInLatestSnapshot() API. Contributed by Shashikant Banerjee.
1 parent 3e7b65c commit 85d4718

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ public final boolean isInLatestSnapshot(final int latestSnapshotId) {
254254
// if parent is a reference node, parent must be a renamed node. We can
255255
// stop the check at the reference node.
256256
if (parent != null && parent.isReference()) {
257-
// TODO: Is it a bug to return true?
258-
// Some ancestor nodes may not be in the latest snapshot.
259257
return true;
260258
}
261259
final INodeDirectory parentDir = getParent();

0 commit comments

Comments
 (0)