CompoundMultiIndex
returns duplicate entries with SingleIndexer
s
#95
Labels
CompoundMultiIndex
returns duplicate entries with SingleIndexer
s
#95
I'm not 100% sure this (mis)behaviour can be attributed to the combination of
CompoundMultiIndex
and single indexers actually, but I have a repro case which looks simple enough that it's hard to find any other cause there.when a single entry is inserted into a table with such an index:
and subsequently looked up (in a separate transaction)
then the same entry is returned twice:
I can confirm it is the exact same entry by comparing the pointer address, which consequently also makes such index impossible to use in
DeleteAll
where each individual entry would be looked up again viaid
index (as part ofDelete
) while iterating over results and (obviously) the second duplicate no longer exists once the first (original) entry is deleted, soDeleteAll
then returns "not found" error.go-memdb/txn.go
Lines 313 to 329 in 542a580
Here is a full repro case:
The text was updated successfully, but these errors were encountered: