aboutsummaryrefslogtreecommitdiff
path: root/tx.go
diff options
context:
space:
mode:
Diffstat (limited to 'tx.go')
-rw-r--r--tx.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tx.go b/tx.go
index a9781f2..211085a 100644
--- a/tx.go
+++ b/tx.go
@@ -173,7 +173,9 @@ func (tx *Tx) Commit() error {
tx.close()
return err
}
- tx.db.freelist.write(p)
+ if err := tx.db.freelist.write(p); err != nil {
+ return err
+ }
tx.meta.freelist = p.id
// Write dirty pages to disk.