mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
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
This commit is contained in:
parent
99cd749ce2
commit
9b8550fbd3
@ -880,7 +880,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size,
|
|||||||
* transferring data to the kernel.
|
* transferring data to the kernel.
|
||||||
*/
|
*/
|
||||||
char *zbuffer = (char *) palloc0(ZBUFFER_SIZE);
|
char *zbuffer = (char *) palloc0(ZBUFFER_SIZE);
|
||||||
uint32 remaining = request_size;
|
Size remaining = request_size;
|
||||||
bool success = true;
|
bool success = true;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user