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

This commit is contained in:
Shashikant Banerjee 2020-07-15 10:32:25 +05:30
parent 3e7b65c3e5
commit 85d4718ed7

View File

@ -254,8 +254,6 @@ public final boolean isInLatestSnapshot(final int latestSnapshotId) {
// if parent is a reference node, parent must be a renamed node. We can // if parent is a reference node, parent must be a renamed node. We can
// stop the check at the reference node. // stop the check at the reference node.
if (parent != null && parent.isReference()) { 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; return true;
} }
final INodeDirectory parentDir = getParent(); final INodeDirectory parentDir = getParent();