pgsql: Assert(PqCommReadingMsg) in pq_peekbyte().

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Assert(PqCommReadingMsg) in pq_peekbyte().
Date: 2015-02-07 04:44:34
Message-ID: E1YJxFy-00036F-3M@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a7a4adcf8d1e5a34a15ad86aee7d6aa0b8c15d43

Modified Files
--------------
src/backend/libpq/pqcomm.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2015-02-09 06:16:28 pgsql: Move pg_lzcompress.c to src/common.
Previous Message Bruce Momjian 2015-02-07 00:48:53 Security commits