HDFS-7155. Bugfix in createLocatedFileStatus caused by bad merge. (Arpit Agarwal)
This commit is contained in:
parent
7060502edb
commit
a2d4edacea
@ -80,4 +80,6 @@
|
|||||||
HDFS-7144. Fix findbugs warnings in RamDiskReplicaTracker. (szetszwo via
|
HDFS-7144. Fix findbugs warnings in RamDiskReplicaTracker. (szetszwo via
|
||||||
Arpit Agarwal)
|
Arpit Agarwal)
|
||||||
|
|
||||||
|
HDFS-7155. Bugfix in createLocatedFileStatus caused by bad merge.
|
||||||
|
(Arpit Agarwal)
|
||||||
|
|
||||||
|
@ -2457,6 +2457,7 @@ private HdfsLocatedFileStatus createLocatedFileStatus(byte[] path, INode node,
|
|||||||
final INodeFile fileNode = node.asFile();
|
final INodeFile fileNode = node.asFile();
|
||||||
size = fileNode.computeFileSize(snapshot);
|
size = fileNode.computeFileSize(snapshot);
|
||||||
replication = fileNode.getFileReplication(snapshot);
|
replication = fileNode.getFileReplication(snapshot);
|
||||||
|
blocksize = fileNode.getPreferredBlockSize();
|
||||||
isLazyPersist = fileNode.getLazyPersistFlag();
|
isLazyPersist = fileNode.getLazyPersistFlag();
|
||||||
|
|
||||||
final boolean inSnapshot = snapshot != Snapshot.CURRENT_STATE_ID;
|
final boolean inSnapshot = snapshot != Snapshot.CURRENT_STATE_ID;
|
||||||
|
Loading…
Reference in New Issue
Block a user