Commit bafb203
authored
Fix cleaning empty processed directories getting permanently stuck. (#23984)
# Objective
- Fix an obvious infinite loop.
## Solution
- Change `path` variable so we keep "going up" instead of repeatedly
deleting the same path.
It's not clear what the actual effects may be, I just noticed this in
the code but not an actual bug. I believe what would happen is the first
delete would succeed, and then the second delete would error which would
break the loop. This is clearly the wrong behavior though.
## Testing
- None.1 parent 8930a15 commit bafb203
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
987 | | - | |
| 987 | + | |
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
| 994 | + | |
994 | 995 | | |
995 | 996 | | |
996 | 997 | | |
| |||
0 commit comments