Skip to content

Commit

Permalink
switching back to the (broken) location code
Browse files Browse the repository at this point in the history
  • Loading branch information
steveloughran committed Feb 15, 2013
1 parent 62d09bb commit 667c39a
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -192,11 +192,10 @@ public boolean isDirectory(Path f) throws IOException {
public BlockLocation[] getFileBlockLocations(FileStatus file,
long start,
long len) throws IOException {
return super.getFileBlockLocations(file, start, len);
// return super.getFileBlockLocations(file, start, len);
// Check if requested file in Swift is more than 5Gb. In this case
// each block has its own location -which may be determinable
// from the Swift client API, depending on the remote server
/* disabled until this degrades properly to non-block aware filesystems
final FileStatus[] listOfFileBlocks = store.listSubPaths(file.getPath(),
false,
true);
Expand All @@ -223,7 +222,7 @@ public BlockLocation[] getFileBlockLocations(FileStatus file,
}
return new BlockLocation[]{
new BlockLocation(names, hosts, 0, file.getLen())
};*/
};
}

@Override
Expand Down

0 comments on commit 667c39a

Please sign in to comment.