HDFS-13250. Addendum to fix branch-2 compilation. RBF: Router to manage requests across multiple subclusters. Contributed by Inigo Goiri.
This commit is contained in:
parent
0b6d5a0731
commit
8bbd560805
|
@ -1163,7 +1163,7 @@ public class RouterRpcServer extends AbstractService implements ClientProtocol {
|
|||
for (RemoteLocation loc : locations) {
|
||||
HdfsFileStatus fileStatus = results.get(loc);
|
||||
if (fileStatus != null) {
|
||||
if (!fileStatus.isDirectory()) {
|
||||
if (fileStatus.isDir()) {
|
||||
return fileStatus;
|
||||
} else if (dirStatus == null) {
|
||||
dirStatus = fileStatus;
|
||||
|
|
Loading…
Reference in New Issue