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

Commita7a4adc

Browse files
committed
Assert(PqCommReadingMsg) in pq_peekbyte().
Interrupting pq_recvbuf() can break protocol sync, so its callers alldeserve this assertion. The one pq_peekbyte() caller suffices already.
1 parentff16b40 commita7a4adc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/libpq/pqcomm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,8 @@ pq_getbyte(void)
928928
int
929929
pq_peekbyte(void)
930930
{
931+
Assert(PqCommReadingMsg);
932+
931933
while (PqRecvPointer >=PqRecvLength)
932934
{
933935
if (pq_recvbuf())/* If nothing in buffer, then recv some */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp