]> granicus.if.org Git - postgresql/commit
Assert(PqCommReadingMsg) in pq_peekbyte().
authorNoah Misch <noah@leadboat.com>
Sat, 7 Feb 2015 04:14:27 +0000 (23:14 -0500)
committerNoah Misch <noah@leadboat.com>
Sat, 7 Feb 2015 04:14:27 +0000 (23:14 -0500)
commita7a4adcf8d1e5a34a15ad86aee7d6aa0b8c15d43
tree9750c2d056682ea00a4de85d9d3dc003db5af489
parentff16b40f8cac67a740f4edaa9fc2d9c7ba44c73a
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.
src/backend/libpq/pqcomm.c