- Notifications
You must be signed in to change notification settings - Fork5
Commit8232d6d
committed
Ensure cleanup in case of early errors in streaming base backups
Move the code that sends the initial status information as well as thecalculation of paths inside the ENSURE_ERROR_CLEANUP block. If this codefailed, we would "leak" a counter of number of concurrent backups, therebymaking the system always believe it was in backup mode. This could happenif the sending failed (which it probably never did given that the smallamount of data to send would never cause a flush) or if the psprintf callsran out of memory. Both are very low risk, but all operations afterdo_pg_start_backup should be protected.1 parentc676315 commit8232d6d
1 file changed
+18
-11
lines changedLines changed: 18 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
137 |
| - | |
138 |
| - | |
139 | 137 |
| |
140 |
| - | |
141 |
| - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
142 | 142 |
| |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 | 143 |
| |
151 | 144 |
| |
152 | 145 |
| |
| |||
155 | 148 |
| |
156 | 149 |
| |
157 | 150 |
| |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
158 | 165 |
| |
159 | 166 |
| |
160 | 167 |
| |
|
0 commit comments
Comments
(0)