HDFS-15603. RBF: Fix getLocationsForPath twice in create operation. Contributed by wangzhaohui.
This commit is contained in:
parent
fc8a6dd8a9
commit
d686a655bc
|
@ -288,7 +288,7 @@ public class RouterClientProtocol implements ClientProtocol {
|
|||
rpcServer.getLocationsForPath(src, true);
|
||||
RemoteLocation createLocation = null;
|
||||
try {
|
||||
createLocation = rpcServer.getCreateLocation(src);
|
||||
createLocation = rpcServer.getCreateLocation(src, locations);
|
||||
return rpcClient.invokeSingle(createLocation, method,
|
||||
HdfsFileStatus.class);
|
||||
} catch (IOException ioe) {
|
||||
|
|
Loading…
Reference in New Issue