Skip to content

Commit

Permalink
Merge pull request #43 from lorneli/bbolt_seek
Browse files Browse the repository at this point in the history
tx: use io.SeekStart in WriteTo function
  • Loading branch information
Anthony Romano committed Sep 12, 2017
2 parents 4d3ab93 + 4ce1b5e commit cca7a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (tx *Tx) WriteTo(w io.Writer) (n int64, err error) {
}

// Move past the meta pages in the file.
if _, err := f.Seek(int64(tx.db.pageSize*2), os.SEEK_SET); err != nil {
if _, err := f.Seek(int64(tx.db.pageSize*2), io.SeekStart); err != nil {
return n, fmt.Errorf("seek: %s", err)
}

Expand Down

0 comments on commit cca7a90

Please sign in to comment.