HDFS-7517. Remove redundant non-null checks in FSNamesystem#getBlockLocations. Contributed by Haohui Mai.

This commit is contained in:
Haohui Mai 2014-12-12 11:51:17 -08:00
parent 3681de2039
commit 46612c7a51
2 changed files with 3 additions and 4 deletions

View File

@ -579,6 +579,9 @@ Release 2.7.0 - UNRELEASED
HDFS-7497. Inconsistent report of decommissioning DataNodes between
dfsadmin and NameNode webui. (Yongjun Zhang via wang)
HDFS-7517. Remove redundant non-null checks in FSNamesystem#
getBlockLocations. (wheat9)
Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -1782,10 +1782,6 @@ LocatedBlocks getBlockLocations(String clientMachine, String src,
logAuditEvent(true, "open", src);
if (res == null) {
return null;
}
if (res.updateAccessTime()) {
writeLock();
final long now = now();