forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2387f52
committed
Remove useless arguments in ReadCheckpointRecord().
This commit removes two arguments "report" and "whichChkpt"in ReadCheckpointRecord()."report" is obviously useless because it's always true, i.e., there aretwo callers of the function and they always specify true as "report".Commit1d919de removed the only call with "report" = false."whichChkpt" indicated where the specified checkpoint locationcame from, pg_control or backup_label. This information was usedto report different error messages depending on where the invalidcheckpoint record came from, when it was found.But ReadCheckpointRecord() doesn't need to do that becauseits callers already do that and users can still identify wherethe invalid checkpoint record came from, by reading such log messages.Also when "whichChkpt" was 0, the word "primary checkpoint" was usedin the log message and could confuse users because the concept ofprimary and secondary checkpoints was already removed before.These are why this commit removes "whichChkpt" argument.Author: Fujii MasaoReviewed-by: Bharath Rupireddy, Kyotaro HoriguchiDiscussion:https://postgr.es/m/fa2e12eb-81c3-0717-0272-755f8a81c8f2@oss.nttdata.com1 parent6955bba commit2387f52
1 file changed
+15
-69
lines changedLines changed: 15 additions & 69 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
425 |
| - | |
426 |
| - | |
| 425 | + | |
| 426 | + | |
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
| |||
605 | 605 |
| |
606 | 606 |
| |
607 | 607 |
| |
608 |
| - | |
| 608 | + | |
609 | 609 |
| |
610 | 610 |
| |
611 | 611 |
| |
| |||
744 | 744 |
| |
745 | 745 |
| |
746 | 746 |
| |
747 |
| - | |
| 747 | + | |
748 | 748 |
| |
749 | 749 |
| |
750 | 750 |
| |
| |||
3843 | 3843 |
| |
3844 | 3844 |
| |
3845 | 3845 |
| |
3846 |
| - | |
3847 |
| - | |
3848 |
| - | |
3849 | 3846 |
| |
3850 | 3847 |
| |
3851 | 3848 |
| |
3852 |
| - | |
| 3849 | + | |
3853 | 3850 |
| |
3854 | 3851 |
| |
3855 | 3852 |
| |
| |||
3858 | 3855 |
| |
3859 | 3856 |
| |
3860 | 3857 |
| |
3861 |
| - | |
3862 |
| - | |
3863 |
| - | |
3864 |
| - | |
3865 |
| - | |
3866 |
| - | |
3867 |
| - | |
3868 |
| - | |
3869 |
| - | |
3870 |
| - | |
3871 |
| - | |
3872 |
| - | |
3873 |
| - | |
3874 |
| - | |
| 3858 | + | |
| 3859 | + | |
3875 | 3860 |
| |
3876 | 3861 |
| |
3877 | 3862 |
| |
| |||
3880 | 3865 |
| |
3881 | 3866 |
| |
3882 | 3867 |
| |
3883 |
| - | |
3884 |
| - | |
3885 |
| - | |
3886 |
| - | |
3887 |
| - | |
3888 |
| - | |
3889 |
| - | |
3890 |
| - | |
3891 |
| - | |
3892 |
| - | |
3893 |
| - | |
3894 |
| - | |
3895 |
| - | |
3896 |
| - | |
| 3868 | + | |
| 3869 | + | |
3897 | 3870 |
| |
3898 | 3871 |
| |
3899 | 3872 |
| |
3900 | 3873 |
| |
3901 |
| - | |
3902 |
| - | |
3903 |
| - | |
3904 |
| - | |
3905 |
| - | |
3906 |
| - | |
3907 |
| - | |
3908 |
| - | |
3909 |
| - | |
3910 |
| - | |
3911 |
| - | |
| 3874 | + | |
| 3875 | + | |
3912 | 3876 |
| |
3913 | 3877 |
| |
3914 | 3878 |
| |
3915 | 3879 |
| |
3916 | 3880 |
| |
3917 | 3881 |
| |
3918 |
| - | |
3919 |
| - | |
3920 |
| - | |
3921 |
| - | |
3922 |
| - | |
3923 |
| - | |
3924 |
| - | |
3925 |
| - | |
3926 |
| - | |
3927 |
| - | |
3928 |
| - | |
| 3882 | + | |
| 3883 | + | |
3929 | 3884 |
| |
3930 | 3885 |
| |
3931 | 3886 |
| |
3932 | 3887 |
| |
3933 |
| - | |
3934 |
| - | |
3935 |
| - | |
3936 |
| - | |
3937 |
| - | |
3938 |
| - | |
3939 |
| - | |
3940 |
| - | |
3941 |
| - | |
3942 |
| - | |
3943 |
| - | |
| 3888 | + | |
| 3889 | + | |
3944 | 3890 |
| |
3945 | 3891 |
| |
3946 | 3892 |
| |
|
0 commit comments
Comments
(0)