mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
"Pin", rather than "keep", dynamic shared memory mappings and segments.
Nobody seemed concerned about this naming when it originally went in, but there's a pending patch that implements the opposite of dsm_keep_mapping, and the term "unkeep" was judged unpalatable. "unpin" has existing precedent in the PostgreSQL code base, and the English language, so use this terminology instead. Per discussion, back-patch to 9.4.
This commit is contained in:
@@ -36,8 +36,8 @@ extern void *dsm_remap(dsm_segment *seg);
|
||||
extern void dsm_detach(dsm_segment *seg);
|
||||
|
||||
/* Resource management functions. */
|
||||
extern void dsm_keep_mapping(dsm_segment *seg);
|
||||
extern void dsm_keep_segment(dsm_segment *seg);
|
||||
extern void dsm_pin_mapping(dsm_segment *seg);
|
||||
extern void dsm_pin_segment(dsm_segment *seg);
|
||||
extern dsm_segment *dsm_find_mapping(dsm_handle h);
|
||||
|
||||
/* Informational functions. */
|
||||
|
@@ -73,6 +73,6 @@ extern bool dsm_impl_op(dsm_op op, dsm_handle handle, Size request_size,
|
||||
extern bool dsm_impl_can_resize(void);
|
||||
|
||||
/* Implementation-dependent actions required to keep segment until shudown. */
|
||||
extern void dsm_impl_keep_segment(dsm_handle handle, void *impl_private);
|
||||
extern void dsm_impl_pin_segment(dsm_handle handle, void *impl_private);
|
||||
|
||||
#endif /* DSM_IMPL_H */
|
||||
|
Reference in New Issue
Block a user