summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas2024-02-13 19:23:41 +0000
committerHeikki Linnakangas2024-02-13 19:23:41 +0000
commitfbf9a7ac4d300bbadbffe11c58cb54fcbe15601f (patch)
tree1d071f3212e6ec0d8c79549f4e695f702f6034b8 /src
parent0736a8ef6f0e108e3972750a58a4e42ba070b029 (diff)
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/[email protected]
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/ipc/dsm_impl.c2
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;
/*