Commit 2bbdc687 authored by Robert Haas's avatar Robert Haas

dsa: Cope with the possibility that SIZE_MAX is not defined.

Per buildfarm member gaur and Tom Lane.
parent a0ae54df
...@@ -1184,7 +1184,7 @@ create_internal(void *place, size_t size, ...@@ -1184,7 +1184,7 @@ create_internal(void *place, size_t size,
control->segment_header.freed = false; control->segment_header.freed = false;
control->segment_header.size = DSA_INITIAL_SEGMENT_SIZE; control->segment_header.size = DSA_INITIAL_SEGMENT_SIZE;
control->handle = control_handle; control->handle = control_handle;
control->max_total_segment_size = SIZE_MAX; control->max_total_segment_size = (Size) -1;
control->total_segment_size = size; control->total_segment_size = size;
memset(&control->segment_handles[0], 0, memset(&control->segment_handles[0], 0,
sizeof(dsm_handle) * DSA_MAX_SEGMENTS); sizeof(dsm_handle) * DSA_MAX_SEGMENTS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment