update to latest bstore, which now properly handles modifications during Query.ForEach

This commit is contained in:
Mechiel Lukkien
2025-03-24 10:01:57 +01:00
parent 88ec5c6fbe
commit 04b1f030b7
8 changed files with 130 additions and 62 deletions

View File

@ -75,9 +75,18 @@ type Tx struct {
bucketCache map[bucketKey]*bolt.Bucket
// We need to keep track of queries to set reseek on their execs when updating
// (put/delete) the record/index bucket for their cursors.
queries []bucketReseeker
stats Stats
}
type bucketReseeker interface {
// bucketReseek is called on queries when a bucket changed (put/delete).
bucketReseek(b *bolt.Bucket)
}
// bucketKey represents a subbucket for a type.
type bucketKey struct {
typeName string