File tree
4 files changed
+12
-174
lines changed- src
- backend/storage/ipc
- include/storage
4 files changed
+12
-174
lines changedLines changed: 0 additions & 32 deletions
<
10000
table aria-label="Diff for: src/backend/storage/ipc/dsm.c" class="tab-size width-full DiffLines-module__tableLayoutFixed--ZmaVx" data-diff-anchor="diff-a24e644eb60914edf85736fdca86655c2a02ece0caa66a7652ffff3256de0580" data-tab-size="8" data-paste-markdown-skip="true" role="grid" style="--line-number-cell-width:44px;--line-number-cell-width-unified:88px">Original file line number Diff line number Diff line change
@@ -653,38 +653,6 @@ dsm_detach_all(void)
653
653
&dsm_control_mapped_size, ERROR);
654
654
}
655
655
656
-/*
657
- * Resize an existing shared memory segment.
658
- *
659
- * This may cause the shared memory segment to be remapped at a different
660
- * address. For the caller's convenience, we return the mapped address.
661
- */
662
-void *
663
-dsm_resize(dsm_segment *seg, Size size)
664
-{
665
- Assert(seg->control_slot != INVALID_CONTROL_SLOT);
666
- dsm_impl_op(DSM_OP_RESIZE, seg->handle, size, &seg->impl_private,
667
- &seg->mapped_address, &seg->mapped_size, ERROR);
668
- return seg->mapped_address;
669
-}
670
-
671
-/*
672
- * Remap an existing shared memory segment.
673
- *
674
- * This is intended to be used when some other process has extended the
675
- * mapping using dsm_resize(), but we've still only got the initial
676
- * portion mapped. Since this might change the address at which the
677
- * segment is mapped, we return the new mapped address.
678
- */
679
-void *
680
-dsm_remap(dsm_segment *seg)
681
-{
682
- dsm_impl_op(DSM_OP_ATTACH, seg->handle, 0, &seg->impl_private,
683
- &seg->mapped_address, &seg->mapped_size, ERROR);
684
-
685
- return seg->mapped_address;
686
-}
687
-
688
656
/*
689
657
* Detach from a shared memory segment, destroying the segment if we
690
658
* remove the last reference.
Lines changed: 11 additions & 135 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 |
| - | |
131 |
| - | |
132 | 130 |
| |
133 | 131 |
| |
134 | 132 |
| |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 | 133 |
| |
139 | 134 |
| |
140 | 135 |
| |
141 | 136 |
| |
142 | 137 |
| |
143 | 138 |
| |
144 | 139 |
| |
145 |
| - | |
146 |
| - | |
| 140 | + | |
147 | 141 |
| |
148 | 142 |
| |
149 | 143 |
| |
| |||
165 | 159 |
| |
166 | 160 |
| |
167 | 161 |
| |
168 |
| - | |
| 162 | + | |
169 | 163 |
| |
170 | 164 |
| |
171 | 165 |
| |
| |||
198 | 192 |
| |
199 | 193 |
| |
200 | 194 |
| |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 | 195 |
| |
227 | 196 |
| |
228 | 197 |
| |
| |||
296 | 265 |
| |
297 | 266 |
| |
298 | 267 |
| |
299 |
| - | |
| 268 | + | |
300 | 269 |
| |
301 | 270 |
| |
302 | 271 |
| |
| |||
319 | 288 |
| |
320 | 289 |
| |
321 | 290 |
| |
322 |
| - | |
323 |
| - | |
| 291 | + | |
324 | 292 |
| |
325 | 293 |
| |
326 | 294 |
| |
327 | 295 |
| |
328 | 296 |
| |
329 | 297 |
| |
330 |
| - | |
331 |
| - | |
| 298 | + | |
332 | 299 |
| |
333 | 300 |
| |
334 | 301 |
| |
| |||
346 | 313 |
| |
347 | 314 |
| |
348 | 315 |
| |
349 |
| - | |
350 |
| - | |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 |
| - | |
377 |
| - | |
378 | 316 |
| |
379 | 317 |
| |
380 | 318 |
| |
| |||
457 | 395 |
| |
458 | 396 |
| |
459 | 397 |
| |
460 |
| - | |
461 |
| - | |
462 |
| - | |
463 |
| - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
464 | 401 |
| |
465 | 402 |
| |
466 | 403 |
| |
| |||
473 | 410 |
| |
474 | 411 |
| |
475 | 412 |
| |
476 |
| - | |
477 |
| - | |
478 |
| - | |
479 |
| - | |
480 |
| - | |
481 |
| - | |
482 |
| - | |
483 | 413 |
| |
484 | 414 |
| |
485 | 415 |
| |
| |||
670 | 600 |
| |
671 | 601 |
| |
672 | 602 |
| |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
680 | 603 |
| |
681 | 604 |
| |
682 | 605 |
| |
| |||
905 | 828 |
| |
906 | 829 |
| |
907 | 830 |
| |
908 |
| - | |
| 831 | + | |
909 | 832 |
| |
910 | 833 |
| |
911 | 834 |
| |
| |||
928 | 851 |
| |
929 | 852 |
| |
930 | 853 |
| |
931 |
| - | |
932 |
| - | |
933 |
| - | |
934 |
| - | |
935 |
| - | |
936 |
| - | |
937 |
| - | |
938 |
| - | |
939 |
| - | |
940 |
| - | |
941 |
| - | |
942 |
| - | |
943 |
| - | |
944 |
| - | |
945 |
| - | |
946 |
| - | |
947 |
| - | |
948 |
| - | |
| 854 | + | |
949 | 855 |
| |
950 | 856 |
| |
951 | 857 |
| |
| |||
985 | 891 |
| |
986 | 892 |
| |
987 | 893 |
| |
988 |
| - | |
989 |
| - | |
| 894 | + | |
990 | 895 |
| |
991 | 896 |
| |
992 | 897 |
| |
| |||
997 | 902 |
| |
998 | 903 |
| |
999 | 904 |
| |
1000 |
| - | |
1001 |
| - | |
1002 |
| - | |
1003 |
| - | |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
1010 |
| - | |
1011 |
| - | |
1012 |
| - | |
1013 |
| - | |
1014 |
| - | |
1015 |
| - | |
1016 |
| - | |
1017 |
| - | |
1018 |
| - | |
1019 |
| - | |
1020 |
| - | |
1021 |
| - | |
1022 |
| - | |
1023 |
| - | |
1024 |
| - | |
1025 |
| - | |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
1029 | 905 |
| |
1030 | 906 |
| |
1031 | 907 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 |
| - | |
41 | 39 |
| |
42 | 40 |
| |
43 | 41 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
63 | 62 |
| |
64 | 63 |
| |
65 | 64 |
| |
| |||
68 | 67 |
| |
69 | 68 |
| |
70 | 69 |
| |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 | 70 |
| |
75 | 71 |
| |
76 | 72 |
| |
|
0 commit comments