forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0282dc2
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). It is very low risk, butall operations after do_pg_start_backup should be protected.1 parent3ae8e8b commit0282dc2
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 |
| - | |
105 | 104 |
| |
106 | 105 |
| |
107 | 106 |
| |
| |||
110 | 109 |
| |
111 | 110 |
| |
112 | 111 |
| |
| 112 | + | |
| 113 | + | |
113 | 114 |
| |
114 | 115 |
| |
115 | 116 |
| |
|
0 commit comments
Comments
(0)