- Notifications
You must be signed in to change notification settings - Fork28
Commite96373a
committed
Ensure that we retry rather than erroring out when send() or recv() return
EINTR; the stats code was failing to do this and so were a couple of placesin the postmaster. The stats code assumed that recv() could not return EINTRif a preceding select() showed the socket to be read-ready, but this isdemonstrably false with our Windows implementation of recv(), and it maynot be the case on all Unix variants either. I think this explains theintermittent stats regression test failures we've been seeing, as wellas reports of stats collector instability under high load on Windows.Backpatch as far as 8.0.1 parenta420818 commite96373a
2 files changed
+33
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
| 330 | + | |
| 331 | + | |
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| |||
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| 382 | + | |
378 | 383 | | |
379 | 384 | | |
| 385 | + | |
| 386 | + | |
380 | 387 | | |
381 | 388 | | |
382 | 389 | | |
| |||
1533 | 1540 | | |
1534 | 1541 | | |
1535 | 1542 | | |
| 1543 | + | |
| 1544 | + | |
1536 | 1545 | | |
1537 | 1546 | | |
1538 | 1547 | | |
1539 | 1548 | | |
1540 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
1541 | 1556 | | |
1542 | | - | |
| 1557 | + | |
| 1558 | + | |
1543 | 1559 | | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
1547 | 1560 | | |
1548 | 1561 | | |
1549 | 1562 | | |
| |||
1718 | 1731 | | |
1719 | 1732 | | |
1720 | 1733 | | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
1721 | 1737 | | |
1722 | 1738 | | |
1723 | 1739 | | |
| 1740 | + | |
1724 | 1741 | | |
1725 | 1742 | | |
1726 | 1743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
1374 | 1374 | | |
1375 | 1375 | | |
1376 | 1376 | | |
| 1377 | + | |
| 1378 | + | |
1377 | 1379 | | |
1378 | 1380 | | |
| 1381 | + | |
| 1382 | + | |
1379 | 1383 | | |
1380 | 1384 | | |
1381 | 1385 | | |
| |||
2524 | 2528 | | |
2525 | 2529 | | |
2526 | 2530 | | |
| 2531 | + | |
2527 | 2532 | | |
2528 | 2533 | | |
2529 | 2534 | | |
| |||
2534 | 2539 | | |
2535 | 2540 | | |
2536 | 2541 | | |
2537 | | - | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
2538 | 2547 | | |
2539 | 2548 | | |
2540 | 2549 | | |
| |||
0 commit comments
Comments
(0)