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:
Inigo Goiri 2018-03-21 11:38:17 -07:00
parent 0b6d5a0731
commit 8bbd560805
1 changed files with 1 additions and 1 deletions

View File

@ -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;