forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitee56048
committed
Improve readability of code PROCESS_MAIN in vacuum_rel()
4211fbd has been handling PROCESS_MAIN in vacuum_rel() with an "if/elseif" structure to avoid an extra level of indentation, but this has beenfound as being rather parse to read. This commit updates the code so aswe check for PROCESS_MAIN in a single place and then handle itssubpaths, FULL or non-FULL vacuums. Some comments are added to makethat clearer for the reader.Reported-by: Melanie PlagemanAuthor: Nathan BossartReviewed-by: Michael Paquier, Melanie PlagemanDiscussion:https://postgr.es/m/20230306194009.5cn6sp3wjotd36nu@liskov1 parent99be6fe commitee56048
1 file changed
+21
-13
lines changedLines changed: 21 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2058 | 2058 |
| |
2059 | 2059 |
| |
2060 | 2060 |
| |
2061 |
| - | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2062 | 2065 |
| |
2063 |
| - | |
2064 |
| - | |
| 2066 | + | |
2065 | 2067 |
| |
2066 |
| - | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2067 | 2074 |
| |
2068 |
| - | |
2069 |
| - | |
2070 |
| - | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
2071 | 2078 |
| |
2072 |
| - | |
2073 |
| - | |
| 2079 | + | |
| 2080 | + | |
2074 | 2081 |
| |
2075 |
| - | |
2076 |
| - | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
2077 | 2087 |
| |
2078 |
| - | |
2079 |
| - | |
2080 | 2088 |
| |
2081 | 2089 |
| |
2082 | 2090 |
| |
|
0 commit comments
Comments
(0)