Fix crashes
This commit is contained in:
parent
4e2e1e8c8e
commit
4f4533d434
@ -1147,13 +1147,13 @@ public class EmbeddedDB implements RocksDBSyncAPI, Closeable {
|
||||
} else {
|
||||
var calculatedKey = toMemorySegment(arena, it.key());
|
||||
var calculatedValue = res.col.schema().hasValue() ? toMemorySegment(it.value()) : MemorySegment.NULL;
|
||||
//noinspection unchecked
|
||||
sink.next((T) decodeKVNoBuckets(arena, res.col, calculatedKey, calculatedValue));
|
||||
if (!reverse) {
|
||||
res.it.next();
|
||||
} else {
|
||||
res.it.prev();
|
||||
}
|
||||
//noinspection unchecked
|
||||
sink.next((T) decodeKVNoBuckets(arena, res.col, calculatedKey, calculatedValue));
|
||||
}
|
||||
return it;
|
||||
}), Resources::close)
|
||||
|
Loading…
x
Reference in New Issue
Block a user