Assert(PqCommReadingMsg) in pq_peekbyte().

Noah Misch <noah@leadboat.com>

Commit: a7a4adcf8d1e5a34a15ad86aee7d6aa0b8c15d43
Author: Noah Misch <noah@leadboat.com>
Date: 2015-02-07T04:14:27Z
Releases: 9.5.0
Assert(PqCommReadingMsg) in pq_peekbyte().

Interrupting pq_recvbuf() can break protocol sync, so its callers all
deserve this assertion.  The one pq_peekbyte() caller suffices already.

Files

PathChange+/−
src/backend/libpq/pqcomm.c modified +2 −0