HBASE-1092 FileNotFoundException trying to get index file size for metrics; part 1

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@730233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-12-30 20:40:43 +00:00
parent 127491e583
commit 22d184218d
1 changed files with 1 additions and 2 deletions

View File

@ -558,8 +558,7 @@ public class HStore implements HConstants {
*/
private boolean isEmptyFile(final Path f)
throws IOException {
return this.fs.exists(f) &&
this.fs.getFileStatus(f).getLen() == 0;
return !this.fs.exists(f) || this.fs.getFileStatus(f).getLen() == 0;
}
/**