forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitebd346c
committed
Correct base backup throttling
Throttling for sending a base backup in walsender is broken for the casewhere there is a lot of WAL traffic, because the latch used to put thewalsender to sleep is also signalled by regular WAL traffic (and eachsignal causes an additional batch of data to be sent); the net effect isthat there is no or little actual throttling. This is undesirable, sorewrite the sleep into a loop to achieve the desired effeect.Author: Jeff Janes, small tweaks by meReviewed-by: Antonin HouskaDiscussion:https://postgr.es/m/CAMkU=1xH6mde-yL-Eo1TKBGNd0PB1-TMxvrNvqcAkN-qr2E9mw@mail.gmail.com1 parent9ae9d8c commitebd346c
1 file changed
+26
-11
lines changedLines changed: 26 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1336 | 1336 |
| |
1337 | 1337 |
| |
1338 | 1338 |
| |
1339 |
| - | |
1340 |
| - | |
1341 |
| - | |
1342 |
| - | |
| 1339 | + | |
1343 | 1340 |
| |
1344 | 1341 |
| |
1345 | 1342 |
| |
| |||
1348 | 1345 |
| |
1349 | 1346 |
| |
1350 | 1347 |
| |
1351 |
| - | |
1352 |
| - | |
1353 |
| - | |
1354 |
| - | |
1355 |
| - | |
1356 |
| - | |
1357 |
| - | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1358 | 1357 |
| |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1359 | 1370 |
| |
1360 | 1371 |
| |
1361 | 1372 |
| |
| |||
1372 | 1383 |
| |
1373 | 1384 |
| |
1374 | 1385 |
| |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
1375 | 1390 |
| |
1376 | 1391 |
| |
1377 | 1392 |
| |
|
0 commit comments
Comments
(0)