HDFS-15884. RBF: Remove unused method getCreateLocation in RouterRpcServer (#2754). Contributed by tomscut.

This commit is contained in:
litao 2021-03-14 06:37:31 +08:00 committed by GitHub
parent 167603ba0d
commit e565b05c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -776,20 +776,6 @@ public HdfsFileStatus create(String src, FsPermission masked,
replication, blockSize, supportedVersions, ecPolicyName, storagePolicy);
}
/**
* Get the location to create a file. It checks if the file already existed
* in one of the locations.
*
* @param src Path of the file to check.
* @return The remote location for this file.
* @throws IOException If the file has no creation location.
*/
RemoteLocation getCreateLocation(final String src) throws IOException {
final List<RemoteLocation> locations = getLocationsForPath(src, true);
return getCreateLocation(src, locations);
}
/**
* Get the location to create a file. It checks if the file already existed
* in one of the locations.