Fix compilation errors
This commit is contained in:
parent
25a702015e
commit
faa2a71597
@ -1,6 +1,7 @@
|
||||
package it.cavallium.dbengine.database.disk;
|
||||
|
||||
import it.cavallium.dbengine.database.DiscardingCloseable;
|
||||
import it.cavallium.dbengine.database.LLUtils;
|
||||
import it.cavallium.dbengine.database.SafeCloseable;
|
||||
import it.cavallium.dbengine.database.disk.rocksdb.RocksIteratorObj;
|
||||
import org.rocksdb.ReadOptions;
|
||||
@ -9,7 +10,7 @@ public record RocksIterWithReadOpts(ReadOptions readOptions, RocksIteratorObj it
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
if (readOptions != null && readOptions.isAccessible()) {
|
||||
if (readOptions != null && LLUtils.isAccessible(readOptions)) {
|
||||
readOptions.close();
|
||||
}
|
||||
iter.close();
|
||||
|
Loading…
Reference in New Issue
Block a user