forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0c6be59
committed
Provide helper for retrying partial vectored I/O.
compute_remaining_iovec() is a re-usable routine for retrying afterpg_readv() or pg_writev() reports a short transfer. This will gain newusers in a later commit, but can already replace the open-codedequivalent code in the existing pg_pwritev_with_retry() function.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:https://postgr.es/m/CA+hUKGJkOiOCa+mag4BF+zHo7qo=o9CFheB8=g6uT5TUm2gkvA@mail.gmail.com1 parentbaf7c93 commit0c6be59
2 files changed
+57
-25
lines changedLines changed: 52 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
581 | 581 |
| |
582 | 582 |
| |
583 | 583 |
| |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
584 | 630 |
| |
585 | 631 |
| |
586 | 632 |
| |
| |||
601 | 647 |
| |
602 | 648 |
| |
603 | 649 |
| |
604 |
| - | |
| 650 | + | |
605 | 651 |
| |
606 | 652 |
| |
607 | 653 |
| |
| |||
616 | 662 |
| |
617 | 663 |
| |
618 | 664 |
| |
619 |
| - | |
620 |
| - | |
621 |
| - | |
622 |
| - | |
623 |
| - | |
624 |
| - | |
625 |
| - | |
626 |
| - | |
627 |
| - | |
628 |
| - | |
629 |
| - | |
630 |
| - | |
631 |
| - | |
632 |
| - | |
633 |
| - | |
634 |
| - | |
635 | 665 |
| |
636 |
| - | |
637 |
| - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
638 | 669 |
| |
639 |
| - | |
640 |
| - | |
641 |
| - | |
642 |
| - | |
643 |
| - | |
| 670 | + | |
644 | 671 |
| |
645 |
| - | |
| 672 | + | |
646 | 673 |
| |
647 | 674 |
| |
648 | 675 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 |
| |
50 | 55 |
| |
51 | 56 |
| |
|
0 commit comments
Comments
(0)