mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 00:32:10 -04:00
Fixed signed/unsigned mismatch in test_dsm_registry.
Oversight in commit 8b2bcf3f28.
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/aECi_gSD9JnVWQ8T%40nathan
Backpatch-through: 17
This commit is contained in:
parent
e4b8f925a9
commit
65145d0955
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ set_val_in_shmem(PG_FUNCTION_ARGS)
|
|||
tdr_attach_shmem();
|
||||
|
||||
LWLockAcquire(&tdr_state->lck, LW_EXCLUSIVE);
|
||||
tdr_state->val = PG_GETARG_UINT32(0);
|
||||
tdr_state->val = PG_GETARG_INT32(0);
|
||||
LWLockRelease(&tdr_state->lck);
|
||||
|
||||
PG_RETURN_VOID();
|
||||
|
|
@ -72,5 +72,5 @@ get_val_in_shmem(PG_FUNCTION_ARGS)
|
|||
ret = tdr_state->val;
|
||||
LWLockRelease(&tdr_state->lck);
|
||||
|
||||
PG_RETURN_UINT32(ret);
|
||||
PG_RETURN_INT32(ret);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue