Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2bbdc68

Browse files
committed
dsa: Cope with the possibility that SIZE_MAX is not defined.
Per buildfarm member gaur and Tom Lane.
1 parenta0ae54d commit2bbdc68

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/mmgr

1 file changed

+1
-1
lines changed

‎src/backend/utils/mmgr/dsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ create_internal(void *place, size_t size,
11841184
control->segment_header.freed= false;
11851185
control->segment_header.size=DSA_INITIAL_SEGMENT_SIZE;
11861186
control->handle=control_handle;
1187-
control->max_total_segment_size=SIZE_MAX;
1187+
control->max_total_segment_size=(Size)-1;
11881188
control->total_segment_size=size;
11891189
memset(&control->segment_handles[0],0,
11901190
sizeof(dsm_handle)*DSA_MAX_SEGMENTS);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp