Fix return value of visibilitymap_get_status().
authorNathan Bossart <nathan@postgresql.org>
Thu, 24 Jul 2025 15:13:45 +0000 (10:13 -0500)
committerNathan Bossart <nathan@postgresql.org>
Thu, 24 Jul 2025 15:13:45 +0000 (10:13 -0500)
commit15d33eb1924c1093102b8ce142ede4cb3912e85e
tree41da66b92de95c1bdc203fd1621865d85ce8aadd
parente1c3654839e464957675344a1e949489d98b103b
Fix return value of visibilitymap_get_status().

This function is declared as returning a uint8, but it returns a
bool in one code path.  To fix, return (uint8) 0 instead of false
there.  This should behave exactly the same as before, but it might
prevent future compiler complaints.

Oversight in commit a892234f83.

Author: Julien Rouhaud <rjuju123@gmail.com>
Discussion: https://postgr.es/m/aIHluT2isN58jqHV%40jrouhaud
src/backend/access/heap/visibilitymap.c