mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-31 11:42:30 +00:00
Check meta page write error in Commit
This commit is contained in:
parent
42bc0f210a
commit
bfb02aec20
4
tx.go
4
tx.go
@ -357,7 +357,9 @@ func (t *Tx) writeMeta() error {
|
|||||||
t.meta.write(p)
|
t.meta.write(p)
|
||||||
|
|
||||||
// Write the meta page to file.
|
// 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
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user