forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5a23c74
committed
Reset properly errno before calling write()
6cb3372 enforces errno to ENOSPC when less bytes than what is expectedhave been written when it is unset, though it forgot to properly reseterrno before doing a system call to write(), causing errno topotentially come from a previous system call.Reported-by: Tom LaneAuthor: Michael PaquierReviewed-by: Tom LaneDiscussion:https://postgr.es/m/31797.1533326676@sss.pgh.pa.us1 parente61f21b commit5a23c74
File tree
7 files changed
+14
-0
lines changed- src
- backend
- access
- heap
- transam
- replication
- logical
- bin/pg_basebackup
7 files changed
+14
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1166 | 1166 |
| |
1167 | 1167 |
| |
1168 | 1168 |
| |
| 1169 | + | |
1169 | 1170 |
| |
1170 | 1171 |
| |
1171 | 1172 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1669 | 1669 |
| |
1670 | 1670 |
| |
1671 | 1671 |
| |
| 1672 | + | |
1672 | 1673 |
| |
1673 | 1674 |
| |
1674 | 1675 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
576 | 576 |
| |
577 | 577 |
| |
578 | 578 |
| |
| 579 | + | |
579 | 580 |
| |
580 | 581 |
| |
581 | 582 |
| |
| |||
619 | 620 |
| |
620 | 621 |
| |
621 | 622 |
| |
| 623 | + | |
622 | 624 |
| |
623 | 625 |
| |
624 | 626 |
| |
| |||
641 | 643 |
| |
642 | 644 |
| |
643 | 645 |
| |
| 646 | + | |
644 | 647 |
| |
645 | 648 |
| |
646 | 649 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2421 | 2421 |
| |
2422 | 2422 |
| |
2423 | 2423 |
| |
| 2424 | + | |
2424 | 2425 |
| |
2425 | 2426 |
| |
2426 | 2427 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1609 | 1609 |
| |
1610 | 1610 |
| |
1611 | 1611 |
| |
| 1612 | + | |
1612 | 1613 |
| |
1613 | 1614 |
| |
1614 | 1615 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1275 | 1275 |
| |
1276 | 1276 |
| |
1277 | 1277 |
| |
| 1278 | + | |
1278 | 1279 |
| |
1279 | 1280 |
| |
1280 | 1281 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| 125 | + | |
125 | 126 |
| |
126 | 127 |
| |
127 | 128 |
| |
| |||
445 | 446 |
| |
446 | 447 |
| |
447 | 448 |
| |
| 449 | + | |
448 | 450 |
| |
449 | 451 |
| |
450 | 452 |
| |
| |||
629 | 631 |
| |
630 | 632 |
| |
631 | 633 |
| |
| 634 | + | |
632 | 635 |
| |
633 | 636 |
| |
634 | 637 |
| |
| |||
829 | 832 |
| |
830 | 833 |
| |
831 | 834 |
| |
| 835 | + | |
832 | 836 |
| |
833 | 837 |
| |
834 | 838 |
| |
| |||
901 | 905 |
| |
902 | 906 |
| |
903 | 907 |
| |
| 908 | + | |
904 | 909 |
| |
905 | 910 |
| |
906 | 911 |
| |
| |||
933 | 938 |
| |
934 | 939 |
| |
935 | 940 |
| |
| 941 | + | |
936 | 942 |
| |
937 | 943 |
| |
938 | 944 |
| |
|
0 commit comments
Comments
(0)