diff options
| author | Robert Haas <rhaas@postgresql.org> | 2014-10-30 11:35:55 -0400 |
|---|---|---|
| committer | Robert Haas <rhaas@postgresql.org> | 2014-10-30 11:35:55 -0400 |
| commit | 6057c212f3e783c45e050a78d070edf3e5f069f0 (patch) | |
| tree | 9b5c099b31ca9416a6c83b8accbed134c10fb5b5 /src/include/storage | |
| parent | 7912f9b7dc9e2d3f6cd81892ef6aa797578e9f06 (diff) | |
"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.
Diffstat (limited to 'src/include/storage')
| -rw-r--r-- | src/include/storage/dsm.h | 4 | ||||
| -rw-r--r-- | src/include/storage/dsm_impl.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/dsm.h b/src/include/storage/dsm.h index 1d0110d4b2f..a83b35fd664 100644 --- a/src/include/storage/dsm.h +++ b/src/include/storage/dsm.h @@ -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. */ diff --git a/src/include/storage/dsm_impl.h b/src/include/storage/dsm_impl.h index 6e2a0134119..32cfed2ee9c 100644 --- a/src/include/storage/dsm_impl.h +++ b/src/include/storage/dsm_impl.h @@ -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 */ |
