mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 18:24:35 +03:00
update to latest bbolt (db library) v1.3.11
with a fix for releasing pages allocated during a transaction that was rolled back. also bumps required go version to go1.22
This commit is contained in:
8
vendor/go.etcd.io/bbolt/freelist.go
generated
vendored
8
vendor/go.etcd.io/bbolt/freelist.go
generated
vendored
@ -252,6 +252,14 @@ func (f *freelist) rollback(txid txid) {
|
||||
}
|
||||
// Remove pages from pending list and mark as free if allocated by txid.
|
||||
delete(f.pending, txid)
|
||||
|
||||
// Remove pgids which are allocated by this txid
|
||||
for pgid, tid := range f.allocs {
|
||||
if tid == txid {
|
||||
delete(f.allocs, pgid)
|
||||
}
|
||||
}
|
||||
|
||||
f.mergeSpans(m)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user