forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4331a11
committed
Remove incorrect Asserts in buffile.c
Both BufFileSize() and BufFileAppend() contained Asserts to ensure thegiven BufFile(s) had a valid fileset. A valid fileset isn't required ineither of these functions, so remove the Asserts and adjust thecomments accordingly.This was noticed while work was being done on a new patch to callBufFileSize() on a BufFile without a valid fileset. It seems there'scurrently no code in the tree which could trigger these Asserts, so noneed to backpatch this, for now.Reviewed-by: Peter Geoghegan, Matthias van de Meent, Tom LaneDiscussion:https://postgr.es/m/CAApHDvofgZT0VzydhyGH5MMb-XZzNDqqAbzf1eBZV5HDm3%2BosQ%40mail.gmail.com1 parent2329cad commit4331a11
1 file changed
+3
-8
lines changedLines changed: 3 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
857 | 857 |
| |
858 | 858 |
| |
859 | 859 |
| |
860 |
| - | |
| 860 | + | |
861 | 861 |
| |
862 |
| - | |
| 862 | + | |
863 | 863 |
| |
864 | 864 |
| |
865 | 865 |
| |
866 | 866 |
| |
867 | 867 |
| |
868 | 868 |
| |
869 | 869 |
| |
870 |
| - | |
871 |
| - | |
872 | 870 |
| |
873 | 871 |
| |
874 | 872 |
| |
| |||
883 | 881 |
| |
884 | 882 |
| |
885 | 883 |
| |
886 |
| - | |
887 |
| - | |
| 884 | + | |
888 | 885 |
| |
889 | 886 |
| |
890 | 887 |
| |
| |||
908 | 905 |
| |
909 | 906 |
| |
910 | 907 |
| |
911 |
| - | |
912 | 908 |
| |
913 | 909 |
| |
914 |
| - | |
915 | 910 |
| |
916 | 911 |
| |
917 | 912 |
| |
|
0 commit comments
Comments
(0)