Skip to content

Commit

Permalink
Merge pull request #438 from ahrtr/fix_unmap_error_20230323
Browse files Browse the repository at this point in the history
update the error message when rollback unmap also fails
  • Loading branch information
ahrtr committed Mar 24, 2023
2 parents b027d19 + e2c4254 commit e921b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (db *DB) mmap(minsz int) (err error) {
defer func() {
if err != nil {
if unmapErr := db.munmap(); unmapErr != nil {
err = fmt.Errorf("%w; unmap failed: %v", err, unmapErr)
err = fmt.Errorf("%w; rollback unmap also failed: %v", err, unmapErr)
}
}
}()
Expand Down

0 comments on commit e921b67

Please sign in to comment.