aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2014-03-23 10:40:39 -0700
committerTommi Virtanen <tv@eagain.net>2014-03-23 13:27:37 -0700
commitcb896f65251046f955183e96145bfdd37f3fa89a (patch)
tree59e8e666bf44d52d3a3572a3e6a3f719f0bb7c35
parentCheck meta page write error in Commit (diff)
downloaddedo-cb896f65251046f955183e96145bfdd37f3fa89a.tar.gz
dedo-cb896f65251046f955183e96145bfdd37f3fa89a.tar.xz
Check spill error in Commit
-rw-r--r--tx.go4
1 files changed, 3 insertions, 1 deletions
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)