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

This commit is contained in:
arp 2014-09-26 16:30:47 -07:00
parent 7060502edb
commit a2d4edacea
2 changed files with 3 additions and 0 deletions

View File

@ -80,4 +80,6 @@
HDFS-7144. Fix findbugs warnings in RamDiskReplicaTracker. (szetszwo via
Arpit Agarwal)
HDFS-7155. Bugfix in createLocatedFileStatus caused by bad merge.
(Arpit Agarwal)

View File

@ -2457,6 +2457,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;