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.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -192,11 +192,10 @@ public boolean isDirectory(Path f) throws IOException {
public BlockLocation[] getFileBlockLocations(FileStatus file, public BlockLocation[] getFileBlockLocations(FileStatus file,
long start, long start,
long len) throws IOException { 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 // Check if requested file in Swift is more than 5Gb. In this case
// each block has its own location -which may be determinable // each block has its own location -which may be determinable
// from the Swift client API, depending on the remote server // 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(), final FileStatus[] listOfFileBlocks = store.listSubPaths(file.getPath(),
false, false,
true); true);
Expand All @@ -223,7 +222,7 @@ public BlockLocation[] getFileBlockLocations(FileStatus file,
} }
return new BlockLocation[]{ return new BlockLocation[]{
new BlockLocation(names, hosts, 0, file.getLen()) new BlockLocation(names, hosts, 0, file.getLen())
};*/ };
} }


@Override @Override
Expand Down

0 comments on commit 667c39a

Please sign in to comment.