HDFS-16073. Remove redundant RPC requests for getFileLinkInfo in ClientNamenodeProtocolTranslatorPB. Contributed by lei w.

This commit is contained in:
Ayush Saxena 2021-06-16 15:53:12 +05:30
parent 2636b630b4
commit 77f61df352
1 changed files with 1 additions and 3 deletions

View File

@ -939,9 +939,7 @@ public class ClientNamenodeProtocolTranslatorPB implements
.setSrc(src).build();
try {
GetFileLinkInfoResponseProto result = rpcProxy.getFileLinkInfo(null, req);
return result.hasFs() ?
PBHelperClient.convert(rpcProxy.getFileLinkInfo(null, req).getFs()) :
null;
return result.hasFs() ? PBHelperClient.convert(result.getFs()) : null;
} catch (ServiceException e) {
throw ProtobufHelper.getRemoteException(e);
}