Skip to content

Commit

Permalink
Fixed bug in DefaultEntityCursor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppanopticon committed Oct 30, 2023
1 parent 57d4fb1 commit b7dc70e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand All @@ -34,7 +33,7 @@ class DefaultEntityCursor(entity: DefaultEntity.Tx, columns: Array<ColumnDef<*>>
}.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
Expand Down

0 comments on commit b7dc70e

Please sign in to comment.