forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitba4cc05
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 parent58995db commitba4cc05
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1260 | 1266 | | |
1261 | 1267 | | |
1262 | 1268 | | |
| |||
1288 | 1294 | | |
1289 | 1295 | | |
1290 | 1296 | | |
| 1297 | + | |
1291 | 1298 | | |
1292 | 1299 | | |
1293 | 1300 | | |
| |||
1307 | 1314 | | |
1308 | 1315 | | |
1309 | 1316 | | |
| 1317 | + | |
1310 | 1318 | | |
1311 | 1319 | | |
1312 | 1320 | | |
| |||
1321 | 1329 | | |
1322 | 1330 | | |
1323 | 1331 | | |
| 1332 | + | |
1324 | 1333 | | |
1325 | 1334 | | |
1326 | 1335 | | |
| |||
0 commit comments
Comments
(0)