diff options
author | Thomas Munro <tmunro@postgresql.org> | 2018-11-06 21:20:58 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2018-11-06 21:40:08 +1300 |
commit | 9e12fb02b7ec27ff3707a0a7c31f2421ba62c9df (patch) | |
tree | 9fe2426a078e2affc41a5f51c3f7dc3e2d0d2520 /src/backend/storage/ipc/dsm_impl.c | |
parent | add9182e59084faf57bb264fefcd39fbc93fb116 (diff) | |
download | postgresql-9e12fb02b7ec27ff3707a0a7c31f2421ba62c9df.tar.gz postgresql-9e12fb02b7ec27ff3707a0a7c31f2421ba62c9df.zip |
Remove some remaining traces of dsm_resize().
A couple of obsolete comments and unreachable blocks remained after
commit 3c60d0fa.
Discussion: https://postgr.es/m/CAA4eK1%2B%3DyAFUvpFoHXFi_gm8YqmXN-TtkFH%2BVYjvDLS6-SFq-Q%40mail.gmail.com
Diffstat (limited to 'src/backend/storage/ipc/dsm_impl.c')
-rw-r--r-- | src/backend/storage/ipc/dsm_impl.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c index 78154010aaf..0ff1f5be91e 100644 --- a/src/backend/storage/ipc/dsm_impl.c +++ b/src/backend/storage/ipc/dsm_impl.c @@ -245,7 +245,7 @@ dsm_impl_posix(dsm_op op, dsm_handle handle, Size request_size, } /* - * Create new segment or open an existing one for attach or resize. + * Create new segment or open an existing one for attach. * * Even though we're not going through fd.c, we should be safe against * running out of file descriptors, because of NUM_RESERVED_FDS. We're @@ -410,10 +410,6 @@ dsm_impl_sysv(dsm_op op, dsm_handle handle, Size request_size, char name[64]; int *ident_cache; - /* Since resize isn't supported, reattach is a no-op. */ - if (op == DSM_OP_ATTACH && *mapped_address != NULL) - return true; - /* * POSIX shared memory and mmap-based shared memory identify segments with * names. To avoid needless error message variation, we use the handle as @@ -600,10 +596,6 @@ dsm_impl_windows(dsm_op op, dsm_handle handle, Size request_size, char name[64]; MEMORY_BASIC_INFORMATION info; - /* Since resize isn't supported, reattach is a no-op. */ - if (op == DSM_OP_ATTACH && *mapped_address != NULL) - return true; - /* * Storing the shared memory segment in the Global\ namespace, can allow * any process running in any session to access that file mapping object @@ -814,7 +806,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size, return true; } - /* Create new segment or open an existing one for attach or resize. */ + /* Create new segment or open an existing one for attach. */ flags = O_RDWR | (op == DSM_OP_CREATE ? O_CREAT | O_EXCL : 0); if ((fd = OpenTransientFile(name, flags)) == -1) { |