Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/wal-g/wal-g
Browse files Browse the repository at this point in the history
  • Loading branch information
x4m committed Feb 12, 2018
2 parents 9d851f8 + 371b229 commit e66533c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pagefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ func ApplyFileIncrement(fileName string, increment io.Reader) error {
}

file, err := os.OpenFile(fileName, os.O_RDWR, 0666)
defer file.Close()
defer file.Sync()
if err != nil {
return err
}
defer file.Close()
defer file.Sync()

err = file.Truncate(int64(fileSize))
if err != nil {
Expand Down

0 comments on commit e66533c

Please sign in to comment.