HBASE-10110 Fix Potential Resource Leak in StoreFlusher

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1549927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2013-12-10 18:41:32 +00:00
parent 4b89daa019
commit 155373eb93
1 changed files with 6 additions and 1 deletions

View File

@ -100,7 +100,12 @@ abstract class StoreFlusher {
}
assert scanner != null;
if (store.getCoprocessorHost() != null) {
try {
return store.getCoprocessorHost().preFlush(store, scanner);
} catch (IOException ioe) {
scanner.close();
throw ioe;
}
}
return scanner;
}