From b7dc70ee98d3def6cfc8ebf30124fb0cce6a639f Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Mon, 30 Oct 2023 04:27:21 +0100 Subject: [PATCH] Fixed bug in DefaultEntityCursor. --- .../org/vitrivr/cottontail/dbms/entity/DefaultEntityCursor.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntityCursor.kt b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntityCursor.kt index 1447614bf..63442cddf 100644 --- a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntityCursor.kt +++ b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntityCursor.kt @@ -8,7 +8,6 @@ import org.vitrivr.cottontail.core.database.Name import org.vitrivr.cottontail.core.database.TupleId import org.vitrivr.cottontail.core.tuple.StandaloneTuple import org.vitrivr.cottontail.core.tuple.Tuple -import org.vitrivr.cottontail.core.types.Value import org.vitrivr.cottontail.dbms.column.ColumnTx /** @@ -34,7 +33,7 @@ class DefaultEntityCursor(entity: DefaultEntity.Tx, columns: Array> }.toTypedArray() /** The [LongIterator] backing this [DefaultEntityCursor]. */ - private val iterator = entity.bitmap.iterator(entity.context.txn.xodusTx) as BitmapIterator + private val iterator = entity.bitmap.iterator(entity.context.txn.xodusTx.readonlySnapshot) as BitmapIterator /** The [TupleId] this [DefaultEntityCursor] is currently pointing to. */ private var current: TupleId = -1