Fix comments on data checksum cost settings

The cost parameters for the data checksums worker can be updated by the
user issuing a repeated enable checksum command, but the comments on the
struct members hadn't been updated to reflect this and were out of date.
Another part of the same comment needed better wording to be readable.

Also wrap the reading of the parameters in a lock, there is no live
bug due to not using a lock but it's still the right thing to do.

Author: Daniel Gustafsson <[email protected]>
Reviewed-by: Heikki Linnakangas <[email protected]>
Reported-by: Heikki Linnakangas <[email protected]>
Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d22f5232458278aa62a1769758a8aa6b1dfe290

Modified Files
--------------
src/backend/postmaster/datachecksum_state.c | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)

Reply via email to