Skip to content

Commit

Permalink
Dont require to remove old waldir
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasmannem committed May 12, 2022
1 parent 2d4cefb commit e3fc9d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/postgresql/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ func moveDirRecursive(src string, dest string) error {
// Remove this folder, which is now supposedly empty
if err := syscall.Rmdir(src); err != nil {
log.Errorf("could not remove folder %s: %e", src, err)
return err
// If this is a mountpoint or you don't have enough permissions, you might nog be able to. But that is fine.
//return err
}
} else {
return moveFile(src, dest)
Expand Down

0 comments on commit e3fc9d6

Please sign in to comment.