Skip to content

Commit 15d33eb

Browse files
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 a892234. Author: Julien Rouhaud <rjuju123@gmail.com> Discussion: https://postgr.es/m/aIHluT2isN58jqHV%40jrouhaud
1 parent e1c3654 commit 15d33eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/heap/visibilitymap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ visibilitymap_get_status(Relation rel, BlockNumber heapBlk, Buffer *vmbuf)
364364
{
365365
*vmbuf = vm_readbuf(rel, mapBlock, false);
366366
if (!BufferIsValid(*vmbuf))
367-
return false;
367+
return (uint8) 0;
368368
}
369369

370370
map = PageGetContents(BufferGetPage(*vmbuf));

0 commit comments

Comments
 (0)