Permalink
Browse files

switching back to the (broken) location code

  • Loading branch information...
1 parent 62d09bb commit 667c39a3754a8bfeeb883dd9be497cac6e4ab852 @steveloughran steveloughran committed Feb 15, 2013
@@ -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);
@@ -223,7 +222,7 @@ public boolean isDirectory(Path f) throws IOException {
}
return new BlockLocation[]{
new BlockLocation(names, hosts, 0, file.getLen())
- };*/
+ };
}
@Override

0 comments on commit 667c39a

Please sign in to comment.