forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfd29975
committed
Second thoughts on TOAST decompression.
On detecting a corrupted match tag, pglz_decompress() should justsummarily return -1. Breaking out of the loop, as I did indfc7977,doesn't quite guarantee that will happen. Also, we can useunlikely() on that check, just in case it helps.Backpatch to v13, like the previous patch.1 parentdd26a0a commitfd29975
1 file changed
+9
-8
lines changedLines changed: 9 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
680 | 680 |
| |
681 | 681 |
| |
682 | 682 |
| |
683 |
| - | |
684 |
| - | |
685 |
| - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
686 | 689 |
| |
687 | 690 |
| |
688 | 691 |
| |
| |||
736 | 739 |
| |
737 | 740 |
| |
738 | 741 |
| |
739 |
| - | |
740 |
| - | |
| 742 | + | |
| 743 | + | |
741 | 744 |
| |
742 | 745 |
| |
743 | 746 |
| |
| |||
809 | 812 |
| |
810 | 813 |
| |
811 | 814 |
| |
812 |
| - | |
813 |
| - | |
814 |
| - | |
| 815 | + | |
815 | 816 |
| |
816 | 817 |
| |
817 | 818 |
| |
|
0 commit comments
Comments
(0)