HDFS-15319. Fix INode#isInLatestSnapshot() API. Contributed by Shashikant Banerjee.
This commit is contained in:
parent
3e7b65c3e5
commit
85d4718ed7
|
@ -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
|
// 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();
|
||||||
|
|
Loading…
Reference in New Issue