in hbase-oss/src/main/java/org/apache/hadoop/hbase/oss/HBaseObjectStoreSemantics.java [604:614]
public RemoteIterator<LocatedFileStatus> listLocatedStatus(final Path f)
throws FileNotFoundException, IOException {
AutoLock lock = sync.lockListing(f, Depth.DIRECTORY);
try {
RemoteIterator<LocatedFileStatus> iterator = fs.listLocatedStatus(f);
return new LockedRemoteIterator<LocatedFileStatus>(iterator, lock);
} catch (Exception e) {
lock.close();
throw(e);
}
}