Hi,
It seems like there's a following typo in code comments:
- /* determine how many segments slots can be kept by slots */
+ /* determine how many segments can be kept by slots */
Attaching a tiny patch to fix it. This typo exists all the way until PG 13.
Regards,
Bharath Rupireddy.