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 10, 2022
1 parent 32c0795 commit 9acd4e6
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 9acd4e6

Please sign in to comment.