diff options
| author | Robert Haas | 2014-03-18 15:19:13 +0000 |
|---|---|---|
| committer | Robert Haas | 2014-03-18 15:23:13 +0000 |
| commit | 3bd261ca18c67eafe18088e58fab511e3b965418 (patch) | |
| tree | 73b28579f3fcd1fa9d5a1bacaa7eee8282f530e0 /src/include | |
| parent | 19f2d6cdae2bfa97c2ce8a7f5ac453a91f40704a (diff) | |
Improve shm_mq portability around MAXIMUM_ALIGNOF and sizeof(Size).
Revise the original decision to expose a uint64-based interface and
use Size everywhere possible. Avoid assuming that MAXIMUM_ALIGNOF is
8, or making any assumption about the relationship between that value
and sizeof(Size). If MAXIMUM_ALIGNOF is bigger, we'll now insert
padding after the length word; if it's smaller, we are now prepared
to read and write the length word in chunks.
Per discussion with Tom Lane.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/shm_mq.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/storage/shm_mq.h b/src/include/storage/shm_mq.h index 1bc1f5611e..c7dd90532b 100644 --- a/src/include/storage/shm_mq.h +++ b/src/include/storage/shm_mq.h @@ -57,9 +57,9 @@ extern void shm_mq_detach(shm_mq *); /* Send or receive messages. */ extern shm_mq_result shm_mq_send(shm_mq_handle *mqh, - uint64 nbytes, void *data, bool nowait); + Size nbytes, void *data, bool nowait); extern shm_mq_result shm_mq_receive(shm_mq_handle *mqh, - uint64 *nbytesp, void **datap, bool nowait); + Size *nbytesp, void **datap, bool nowait); /* Wait for our counterparty to attach to the queue. */ extern shm_mq_result shm_mq_wait_for_attach(shm_mq_handle *mqh); |
