]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Minor cleanup around checking datachecksum worker result
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Jun 2026 12:07:30 +0000 (15:07 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Jun 2026 12:07:30 +0000 (15:07 +0300)
commitc48e7b2c8bd09c3a81658ac2388be28b80b87142
tree987588cc2791619dd4f48e1e14135ac4b7fa7619
parentc008b7ea10a5037bf9c6573283b97f4ba56d65c0
Minor cleanup around checking datachecksum worker result

Rename the 'success' field in DataChecksumState to 'worker_result'.
That's more appropriate when it's not a simple boolean.

Don't access the field after releasing the lock in ProcessDatabase().
No other process should be modifying it, but if we bother to do any
locking in the first place, let's do it right.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/b283fbb9-298e-4953-9120-eefaf24fae20@iki.fi
src/backend/postmaster/datachecksum_state.c