Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15d33eb

Browse files
Fix return value of visibilitymap_get_status().
This function is declared as returning a uint8, but it returns abool in one code path. To fix, return (uint8) 0 instead of falsethere. This should behave exactly the same as before, but it mightprevent future compiler complaints.Oversight in commita892234.Author: Julien Rouhaud <rjuju123@gmail.com>Discussion:https://postgr.es/m/aIHluT2isN58jqHV%40jrouhaud
1 parente1c3654 commit15d33eb

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-
returnfalse;
367+
return(uint8)0;
368368
}
369369

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp