fix the spelling mistakes of comments

From: "Liu, Huailing" <liuhuailing(at)cn(dot)fujitsu(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: fix the spelling mistakes of comments
Date: 2019-04-03 10:55:27
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi, everyone

When reading the codes in file src/backend/replication/syncrep.c,
I have found two spelling mistakes of comments.

* syncrep.c
* Synchronous replication is new as of PostgreSQL 9.1.
* If requested, transaction commits wait until their commit LSN are
* acknowledged by the synchronous standbys.
* This module contains the code for waiting and release★ of backends.
* All code in this module executes on the primary. The core streaming
* replication transport remains within WALreceiver/WALsender modules.
I think the word marked★ should be 'releasing'.

* Walk★ the specified queue from head. Set the state of any backends that
* need to be woken, remove them from the queue, and then wake them.
* Pass all = true to wake whole queue; otherwise, just wake up to
* the walsender's LSN.
* Must hold SyncRepLock.
static int
SyncRepWakeQueue(bool all, int mode)
I think the word marked★ should be 'Wake'.

Attached patch fixed them.

Liu Huailing
Liu Huailing
Development Department III
Software Division II
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
ADDR.: No.6 Wenzhu Road, Software Avenue,
Nanjing, 210012, China
TEL : +86+25-86630566-8439
COINS: 7998-8439
FAX : +86+25-83317685
MAIL : liuhuailing(at)cn(dot)fujitsu(dot)com

Attachment Content-Type Size
syncrep.c.patch application/octet-stream 997 bytes


Browse pgsql-hackers by date

  From Date Subject
Next Message Konstantin Knizhnik 2019-04-03 11:36:22 Re: [HACKERS] Cached plans and statement generalization
Previous Message Julien Rouhaud 2019-04-03 09:56:14 Re: Checksum errors in pg_stat_database