update the error message when rollback unmap also fails

Signed-off-by: Benjamin Wang <wachao@vmware.com>
pull/438/head
Benjamin Wang 2023-03-23 19:51:08 +08:00
parent b027d19703
commit e2c42548f2
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -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)
}
}
}()