diff options
author | Nathan Bossart <nathan@postgresql.org> | 2025-06-27 13:37:26 -0500 |
---|---|---|
committer | Nathan Bossart <nathan@postgresql.org> | 2025-06-27 13:37:26 -0500 |
commit | bbccf7ecb363e50ae9d9aa71d0e7c6d49ee0bb06 (patch) | |
tree | 47cb6f4f3f868ee6ab397c9c296bd6f7bc664320 /src | |
parent | 7195c804bd12f47a9f1b2df9c2e1794bb04c5987 (diff) | |
download | postgresql-bbccf7ecb363e50ae9d9aa71d0e7c6d49ee0bb06.tar.gz postgresql-bbccf7ecb363e50ae9d9aa71d0e7c6d49ee0bb06.zip |
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 4db3744f1f.
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
Diffstat (limited to 'src')
-rw-r--r-- | src/test/modules/test_shm_mq/worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/modules/test_shm_mq/worker.c b/src/test/modules/test_shm_mq/worker.c index 96cd304dbbc..c1d321b69a4 100644 --- a/src/test/modules/test_shm_mq/worker.c +++ b/src/test/modules/test_shm_mq/worker.c @@ -77,7 +77,7 @@ test_shm_mq_main(Datum main_arg) * exit, which is fine. If there were a ResourceOwner, it would acquire * ownership of the mapping, but we have no need for that. */ - seg = dsm_attach(DatumGetInt32(main_arg)); + seg = dsm_attach(DatumGetUInt32(main_arg)); if (seg == NULL) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), |