Skip to content

Commit bbccf7e

Browse files
Use correct DatumGet*() function in test_shm_mq_main().
This is purely cosmetic, as dsm_attach() interprets its argument as a dsm_handle (i.e., an unsigned integer), but we might as well fix it. Oversight in commit 4db3744. Author: Jianghua Yang <yjhjstz@gmail.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAAZLFmRxkUD5jRs0W3K%3DUe4_ZS%2BRcAb0PCE1S0vVJBn3sWH2UQ%40mail.gmail.com Backpatch-through: 13
1 parent 7195c80 commit bbccf7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/modules/test_shm_mq/worker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test_shm_mq_main(Datum main_arg)
7777
* exit, which is fine. If there were a ResourceOwner, it would acquire
7878
* ownership of the mapping, but we have no need for that.
7979
*/
80-
seg = dsm_attach(DatumGetInt32(main_arg));
80+
seg = dsm_attach(DatumGetUInt32(main_arg));
8181
if (seg == NULL)
8282
ereport(ERROR,
8383
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),

0 commit comments

Comments
 (0)