mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
update to latest bstore, which now properly handles modifications during Query.ForEach
This commit is contained in:
9
vendor/github.com/mjl-/bstore/store.go
generated
vendored
9
vendor/github.com/mjl-/bstore/store.go
generated
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user