]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix comment of SimpleLruInit() in slru.c
authorMichael Paquier <michael@paquier.xyz>
Thu, 10 Nov 2022 07:33:52 +0000 (16:33 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 10 Nov 2022 07:33:52 +0000 (16:33 +0900)
sync_handler was not mentioned in the comment block of the function.

Oversight in dee663f.

Author: Aleksander Alekseev
Discussion: https://postgr.es/m/CAJ7c6TPUd9BwNY47TtMxaijLHSbyHNdhu=kvbGnvO_bi+oC6_Q@mail.gmail.com
Backpatch-through: 14

src/backend/access/transam/slru.c

index b65cb49d7ff235c02c3fa683fa22d6e545cf41b9..3afd5340911606afec19c4618d25ed02668831fc 100644 (file)
@@ -182,6 +182,7 @@ SimpleLruShmemSize(int nslots, int nlsns)
  * ctllock: LWLock to use to control access to the shared control structure.
  * subdir: PGDATA-relative subdirectory that will contain the files.
  * tranche_id: LWLock tranche ID to use for the SLRU's per-buffer LWLocks.
+ * sync_handler: which set of functions to use to handle sync requests
  */
 void
 SimpleLruInit(SlruCtl ctl, const char *name, int nslots, int nlsns,