HDFS-11053. Unnecessary superuser check in versionRequest(). Contributed by Kihwal Lee.
(cherry picked from commit e90af4a89b
)
This commit is contained in:
parent
366ebb0822
commit
0cd43dd2b7
|
@ -1527,7 +1527,6 @@ public class NameNodeRpcServer implements NamenodeProtocols {
|
||||||
@Override // DatanodeProtocol, NamenodeProtocol
|
@Override // DatanodeProtocol, NamenodeProtocol
|
||||||
public NamespaceInfo versionRequest() throws IOException {
|
public NamespaceInfo versionRequest() throws IOException {
|
||||||
checkNNStartup();
|
checkNNStartup();
|
||||||
namesystem.checkSuperuserPrivilege();
|
|
||||||
return namesystem.getNamespaceInfo();
|
return namesystem.getNamespaceInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue