HDFS-7155. Bugfix in createLocatedFileStatus caused by bad merge. (Arpit Agarwal)

Conflicts:
	hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-6581.txt
This commit is contained in:
arp 2014-09-26 16:30:47 -07:00 committed by Jitendra Pandey
parent 05cfd68863
commit 3481f5d4f3
1 changed files with 1 additions and 0 deletions

View File

@ -2464,6 +2464,7 @@ public class FSDirectory implements Closeable {
final INodeFile fileNode = node.asFile();
size = fileNode.computeFileSize(snapshot);
replication = fileNode.getFileReplication(snapshot);
blocksize = fileNode.getPreferredBlockSize();
isLazyPersist = fileNode.getLazyPersistFlag();
final boolean inSnapshot = snapshot != Snapshot.CURRENT_STATE_ID;