Skip to content

Commit

Permalink
update the error message when rollback unmap also fails
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Wang <wachao@vmware.com>
  • Loading branch information
ahrtr committed Mar 23, 2023
1 parent b027d19 commit e2c4254
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 e2c4254

Please sign in to comment.