- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit5cfbff4
committed
Fix checkpointer shared memory allocation
Use Min(NBuffers, MAX_CHECKPOINT_REQUESTS) instead of NBuffers inCheckpointerShmemSize() to match the actual array size limit set inCheckpointerShmemInit(). This prevents wasting shared memory whenNBuffers > MAX_CHECKPOINT_REQUESTS. Also, fix the comment.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/1439188.1754506714%40sss.pgh.pa.usAuthor: Xuneng Zhou <xunengzhou@gmail.com>Co-authored-by: Alexander Korotkov <aekorotkov@gmail.com>1 parent2ae8280 commit5cfbff4
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
945 | 946 | | |
946 | 947 | | |
947 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
948 | 951 | | |
949 | 952 | | |
950 | 953 | | |
| |||
0 commit comments
Comments
(0)