forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf36a104
committed
Drop slot's LWLock before returning from SaveSlotToPath()
When SaveSlotToPath() is called with elevel=LOG, the early exits didn'trelease the slot's io_in_progress_lock.This could result in a walsender being stuck on the lock forever. Apossible way to get into this situation is if the offending code pathsare triggered in a low disk space situation.Author: Pavan Deolasee <pavan.deolasee@2ndquadrant.com>Reported-by: Craig Ringer <craig@2ndquadrant.com>Discussion:https://www.postgresql.org/message-id/flat/56a138c5-de61-f553-7e8f-6789296de785%402ndquadrant.com1 parent2060999 commitf36a104
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1251 | 1251 |
| |
1252 | 1252 |
| |
1253 | 1253 |
| |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1254 | 1260 |
| |
1255 | 1261 |
| |
1256 | 1262 |
| |
| |||
1282 | 1288 |
| |
1283 | 1289 |
| |
1284 | 1290 |
| |
| 1291 | + | |
1285 | 1292 |
| |
1286 | 1293 |
| |
1287 | 1294 |
| |
| |||
1301 | 1308 |
| |
1302 | 1309 |
| |
1303 | 1310 |
| |
| 1311 | + | |
1304 | 1312 |
| |
1305 | 1313 |
| |
1306 | 1314 |
| |
| |||
1315 | 1323 |
| |
1316 | 1324 |
| |
1317 | 1325 |
| |
| 1326 | + | |
1318 | 1327 |
| |
1319 | 1328 |
| |
1320 | 1329 |
| |
|
0 commit comments
Comments
(0)