Don't close unreleasable buffers
This commit is contained in:
parent
37de47fd6c
commit
f3c63842c8
@ -34,7 +34,9 @@ public abstract class LLLocalGroupedReactiveRocksIterator<T> extends
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (obj.readOptions != null) {
|
if (obj.readOptions != null) {
|
||||||
obj.readOptions.close();
|
if (!(obj.readOptions instanceof UnreleasableReadOptions)) {
|
||||||
|
obj.readOptions.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
logger.error("Failed to close readOptions", ex);
|
logger.error("Failed to close readOptions", ex);
|
||||||
|
@ -35,7 +35,9 @@ public class LLLocalKeyPrefixReactiveRocksIterator extends
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (obj.readOptions != null) {
|
if (obj.readOptions != null) {
|
||||||
obj.readOptions.close();
|
if (!(obj.readOptions instanceof UnreleasableReadOptions)) {
|
||||||
|
obj.readOptions.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
logger.error("Failed to close readOptions", ex);
|
logger.error("Failed to close readOptions", ex);
|
||||||
|
@ -33,7 +33,9 @@ public abstract class LLLocalReactiveRocksIterator<T> extends
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (obj.readOptions != null) {
|
if (obj.readOptions != null) {
|
||||||
obj.readOptions.close();
|
if (!(obj.readOptions instanceof UnreleasableReadOptions)) {
|
||||||
|
obj.readOptions.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
logger.error("Failed to close readOptions", ex);
|
logger.error("Failed to close readOptions", ex);
|
||||||
|
Loading…
Reference in New Issue
Block a user