Fix wording in comment
authorDaniel Gustafsson <[email protected]>
Wed, 23 Aug 2023 08:22:55 +0000 (10:22 +0200)
committerDaniel Gustafsson <[email protected]>
Wed, 23 Aug 2023 08:22:55 +0000 (10:22 +0200)
The comment for the DSM_OP_CREATE paramater read "the a new handle"
which is confusing. Fix by rewording to indicate what the parameter
means for DSM_OP_CREATE.

Reported-by: Junwang Zhao <[email protected]>
Discussion: https://postgr.es/m/CAEG8a3J2bc197ym-M_ykOXb9ox2eNn-QNKNeoSAoHYSw2NCOnw@mail.gmail.com

src/backend/storage/ipc/dsm_impl.c

index 6399fa2ad514218f9c429bc5f71108b086f76ffb..35fa910d6f2b92f583d4058266065c5d3ef58e39 100644 (file)
@@ -137,7 +137,7 @@ int         min_dynamic_shared_memory;
  * Arguments:
  *  op: The operation to be performed.
  *  handle: The handle of an existing object, or for DSM_OP_CREATE, the
- *    a new handle the caller wants created.
+ *    identifier for the new handle the caller wants created.
  *  request_size: For DSM_OP_CREATE, the requested size.  Otherwise, 0.
  *  impl_private: Private, implementation-specific data.  Will be a pointer
  *    to NULL for the first operation on a shared memory segment within this