|
@@ -157,11 +157,13 @@ public class NamenodeProtocolServerSideTranslatorPB implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public RegisterResponseProto register(RpcController unused,
|
|
|
- RegisterRequestProto request) throws ServiceException {
|
|
|
+ public RegisterResponseProto registerSubordinateNamenode(
|
|
|
+ RpcController unused, RegisterRequestProto request)
|
|
|
+ throws ServiceException {
|
|
|
NamenodeRegistration reg;
|
|
|
try {
|
|
|
- reg = impl.register(PBHelper.convert(request.getRegistration()));
|
|
|
+ reg = impl.registerSubordinateNamenode(
|
|
|
+ PBHelper.convert(request.getRegistration()));
|
|
|
} catch (IOException e) {
|
|
|
throw new ServiceException(e);
|
|
|
}
|