pgsql: Fix incorrect calculation in shm_mq_receive. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Fix incorrect calculation in shm_mq_receive.
Date
Msg-id E1ZNPFm-0005Gx-24@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix incorrect calculation in shm_mq_receive.

If some, but not all, of the length word has already been read, and the
next attempt to read sees exactly the number of bytes needed to complete
the length word, or fewer, then we'll incorrectly read less than all of
the available data.

Antonin Houska

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6d9864d900e3651413a94e1f86a93f6a03f4dc42

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Reduce ProcArrayLock contention by removing backends in batches.
Next
From: Robert Haas
Date:
Subject: pgsql: Fix incorrect calculation in shm_mq_receive.