Commit 47ac203
committed
Simplify some ERROR paths clearing wait events and transient files
Transient files and wait events get normally cleaned up when seeing an
exception (be it in the context of a transaction for a backend or
another process like the checkpointer), hence there is little point in
complicating error code paths to do this work. This shaves a bit of
code, and removes some extra handling with errno which needed to be
preserved during the cleanup steps done.
Reported-by: Masahiko Sawada
Author: Michael Paquier
Reviewed-by: Tom Lane, Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoDhHYVq5KkXfkaHhmjA-zJYj-e4teiRAJefvXuKJz1tKQ@mail.gmail.com1 parent a6dcf9d commit 47ac203
File tree
4 files changed
+10
-48
lines changed- src/backend
- access/transam
- replication
- logical
- storage/file
4 files changed
+10
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1693 | 1693 | | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | | - | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
1701 | 1696 | | |
1702 | | - | |
| 1697 | + | |
| 1698 | + | |
1703 | 1699 | | |
1704 | 1700 | | |
1705 | 1701 | | |
1706 | 1702 | | |
1707 | 1703 | | |
1708 | 1704 | | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | 1705 | | |
1715 | | - | |
| 1706 | + | |
| 1707 | + | |
1716 | 1708 | | |
1717 | 1709 | | |
1718 | 1710 | | |
| |||
1725 | 1717 | | |
1726 | 1718 | | |
1727 | 1719 | | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | 1720 | | |
1734 | 1721 | | |
1735 | 1722 | | |
1736 | | - | |
1737 | 1723 | | |
1738 | 1724 | | |
1739 | 1725 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | 582 | | |
587 | | - | |
| 583 | + | |
| 584 | + | |
588 | 585 | | |
589 | 586 | | |
590 | 587 | | |
| |||
624 | 621 | | |
625 | 622 | | |
626 | 623 | | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | 624 | | |
632 | | - | |
| 625 | + | |
| 626 | + | |
633 | 627 | | |
634 | 628 | | |
635 | 629 | | |
| |||
646 | 640 | | |
647 | 641 | | |
648 | 642 | | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 643 | | |
654 | | - | |
| 644 | + | |
| 645 | + | |
655 | 646 | | |
656 | 647 | | |
657 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | 1401 | | |
1407 | 1402 | | |
1408 | 1403 | | |
1409 | 1404 | | |
1410 | | - | |
1411 | 1405 | | |
1412 | 1406 | | |
1413 | 1407 | | |
| |||
1421 | 1415 | | |
1422 | 1416 | | |
1423 | 1417 | | |
1424 | | - | |
1425 | | - | |
1426 | | - | |
1427 | | - | |
1428 | 1418 | | |
1429 | 1419 | | |
1430 | 1420 | | |
| |||
1466 | 1456 | | |
1467 | 1457 | | |
1468 | 1458 | | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
1472 | | - | |
1473 | 1459 | | |
1474 | 1460 | | |
1475 | 1461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
| |||
0 commit comments