diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-02-13 21:23:41 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-02-13 21:23:41 +0200 |
commit | fbf9a7ac4d300bbadbffe11c58cb54fcbe15601f (patch) | |
tree | 1d071f3212e6ec0d8c79549f4e695f702f6034b8 /src/backend/storage/ipc/dsm_impl.c | |
parent | 0736a8ef6f0e108e3972750a58a4e42ba070b029 (diff) | |
download | postgresql-fbf9a7ac4d300bbadbffe11c58cb54fcbe15601f.tar.gz postgresql-fbf9a7ac4d300bbadbffe11c58cb54fcbe15601f.zip |
Fix 'mmap' DSM implementation with allocations larger than 4 GB
Fixes bug #18341. Backpatch to all supported versions.
Discussion: https://www.postgresql.org/message-id/18341-ce16599e7fd6228c@postgresql.org
Diffstat (limited to 'src/backend/storage/ipc/dsm_impl.c')
-rw-r--r-- | src/backend/storage/ipc/dsm_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c index 03aa47a1049..8dd669e0ce9 100644 --- a/src/backend/storage/ipc/dsm_impl.c +++ b/src/backend/storage/ipc/dsm_impl.c @@ -873,7 +873,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size, * transferring data to the kernel. */ char *zbuffer = (char *) palloc0(ZBUFFER_SIZE); - uint32 remaining = request_size; + Size remaining = request_size; bool success = true; /* |