Fix typo with wait event for SLRU buffer of commit timestamps
authorMichael Paquier <michael@paquier.xyz>
Fri, 5 May 2023 12:25:50 +0000 (21:25 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 5 May 2023 12:25:50 +0000 (21:25 +0900)
This wait event was documented as "CommitTsBuffer" since its
introduction, but the code named it "CommitTSBuffer".  This commit fixes
the code to follow the term documented, which is also more consistent
with the naming of the other wait events used for commit timestamps.

Introduced by 5da1493.

Author: Alexander Lakhin
Discussion: https://postgr.es/m/e8c38840-596a-83d6-bd8d-cebc51111572@gmail.com
Backpatch-through: 13

src/backend/storage/lmgr/lwlock.c

index 38317edaf96f0c3a292561ecbfcd01f4fbea3b2f..3bb448627cd0ea0e4b36e22f890b078990f0196e 100644 (file)
@@ -132,7 +132,7 @@ static const char *const BuiltinTrancheNames[] = {
    /* LWTRANCHE_XACT_BUFFER: */
    "XactBuffer",
    /* LWTRANCHE_COMMITTS_BUFFER: */
-   "CommitTSBuffer",
+   "CommitTsBuffer",
    /* LWTRANCHE_SUBTRANS_BUFFER: */
    "SubtransBuffer",
    /* LWTRANCHE_MULTIXACTOFFSET_BUFFER: */