Commit 4331a11
committed
Remove incorrect Asserts in buffile.c
Both BufFileSize() and BufFileAppend() contained Asserts to ensure the
given BufFile(s) had a valid fileset. A valid fileset isn't required in
either of these functions, so remove the Asserts and adjust the
comments accordingly.
This was noticed while work was being done on a new patch to call
BufFileSize() on a BufFile without a valid fileset. It seems there's
currently no code in the tree which could trigger these Asserts, so no
need to backpatch this, for now.
Reviewed-by: Peter Geoghegan, Matthias van de Meent, Tom Lane
Discussion: https://postgr.es/m/CAApHDvofgZT0VzydhyGH5MMb-XZzNDqqAbzf1eBZV5HDm3%2BosQ%40mail.gmail.com1 parent 2329cad commit 4331a11
1 file changed
+3
-8
lines changed| 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