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:
parent
4b89daa019
commit
155373eb93
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue