Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 95cc48c

Browse files
committed
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
1 parent 588f370 commit 95cc48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/ipc/dsm_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size,
868868
* transferring data to the kernel.
869869
*/
870870
char *zbuffer = (char *) palloc0(ZBUFFER_SIZE);
871-
uint32 remaining = request_size;
871+
Size remaining = request_size;
872872
bool success = true;
873873

874874
/*

0 commit comments

Comments
 (0)