mirror of https://github.com/etcd-io/bbolt.git
Check spill error in Commit
parent
bfb02aec20
commit
cb896f6525
4
tx.go
4
tx.go
|
@ -173,7 +173,9 @@ func (t *Tx) Commit() error {
|
||||||
|
|
||||||
// Rebalance and spill data onto dirty pages.
|
// Rebalance and spill data onto dirty pages.
|
||||||
t.rebalance()
|
t.rebalance()
|
||||||
t.spill()
|
if err := t.spill(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// Spill buckets page.
|
// Spill buckets page.
|
||||||
p, err := t.allocate((t.buckets.size() / t.db.pageSize) + 1)
|
p, err := t.allocate((t.buckets.size() / t.db.pageSize) + 1)
|
||||||
|
|
Loading…
Reference in New Issue