HDFS-7517. Remove redundant non-null checks in FSNamesystem#getBlockLocations. Contributed by Haohui Mai.
This commit is contained in:
parent
a858d726c8
commit
d9f31c6472
|
@ -322,6 +322,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
HDFS-7497. Inconsistent report of decommissioning DataNodes between
|
HDFS-7497. Inconsistent report of decommissioning DataNodes between
|
||||||
dfsadmin and NameNode webui. (Yongjun Zhang via wang)
|
dfsadmin and NameNode webui. (Yongjun Zhang via wang)
|
||||||
|
|
||||||
|
HDFS-7517. Remove redundant non-null checks in FSNamesystem#
|
||||||
|
getBlockLocations. (wheat9)
|
||||||
|
|
||||||
Release 2.6.1 - UNRELEASED
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -1772,10 +1772,6 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
||||||
|
|
||||||
logAuditEvent(true, "open", src);
|
logAuditEvent(true, "open", src);
|
||||||
|
|
||||||
if (res == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (res.updateAccessTime()) {
|
if (res.updateAccessTime()) {
|
||||||
writeLock();
|
writeLock();
|
||||||
final long now = now();
|
final long now = now();
|
||||||
|
|
Loading…
Reference in New Issue