Clean up WaitLatch calls that passed latch without WL_LATCH_SET

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: f9ecb57a506ada358baa19287d2c438ad01cdbce
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-10-05T12:31:06Z
Releases: 18.0
Clean up WaitLatch calls that passed latch without WL_LATCH_SET

The 'latch' argument is ignored if WL_LATCH_SET is not given. Clarify
these calls by not pointlessly passing MyLatch.

Discussion: https://www.postgresql.org/message-id/391abe21-413e-4d91-a650-b663af49500c@iki.fi

Files

Discussion