From cb896f65251046f955183e96145bfdd37f3fa89a Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Sun, 23 Mar 2014 10:40:39 -0700 Subject: [PATCH] Check spill error in Commit --- tx.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tx.go b/tx.go index 076fff2..cb1ce5e 100644 --- a/tx.go +++ b/tx.go @@ -173,7 +173,9 @@ func (t *Tx) Commit() error { // Rebalance and spill data onto dirty pages. t.rebalance() - t.spill() + if err := t.spill(); err != nil { + return err + } // Spill buckets page. p, err := t.allocate((t.buckets.size() / t.db.pageSize) + 1)