aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tx.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tx.go b/tx.go
index 8c78184..076fff2 100644
--- a/tx.go
+++ b/tx.go
@@ -357,7 +357,9 @@ func (t *Tx) writeMeta() error {
t.meta.write(p)
// Write the meta page to file.
- t.db.metafile.WriteAt(buf, int64(p.id)*int64(t.db.pageSize))
+ if _, err := t.db.metafile.WriteAt(buf, int64(p.id)*int64(t.db.pageSize)); err != nil {
+ return err
+ }
return nil
}