Fix a typo in walreceiver.c

Started by Bharath Rupireddyover 3 years ago2 messages
#1Bharath Rupireddy
bharath.rupireddyforpostgres@gmail.com
1 attachment(s)

Hi,

Attaching a tiny patch to fix a typo - replace primary_slotname with
correct parameter name primary_slot_name in walreceiver.c code
comments.

Regards,
Bharath Rupireddy.

Attachments:

v1-0001-Replace-primary_slotname-with-primary_slot_name.patchapplication/octet-stream; name=v1-0001-Replace-primary_slotname-with-primary_slot_name.patchDownload
From fca8d33b47c099548455a725eb8d92c97c9321c8 Mon Sep 17 00:00:00 2001
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Date: Tue, 17 May 2022 05:04:49 +0000
Subject: [PATCH v1] Replace primary_slotname with primary_slot_name

---
 src/backend/replication/walreceiver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/replication/walreceiver.c b/src/backend/replication/walreceiver.c
index b369d28a80..9452932d59 100644
--- a/src/backend/replication/walreceiver.c
+++ b/src/backend/replication/walreceiver.c
@@ -681,7 +681,7 @@ WalRcvWaitForStartPosition(XLogRecPtr *startpoint, TimeLineID *startpointTLI)
 		{
 			/*
 			 * No need to handle changes in primary_conninfo or
-			 * primary_slotname here. Startup process will signal us to
+			 * primary_slot_name here. Startup process will signal us to
 			 * terminate in case those change.
 			 */
 			*startpoint = walrcv->receiveStart;
-- 
2.25.1

#2Michael Paquier
michael@paquier.xyz
In reply to: Bharath Rupireddy (#1)
Re: Fix a typo in walreceiver.c

On Tue, May 17, 2022 at 10:38:23AM +0530, Bharath Rupireddy wrote:

Attaching a tiny patch to fix a typo - replace primary_slotname with
correct parameter name primary_slot_name in walreceiver.c code
comments.

Yep, indeed. Will fix after beta1 is stamped.
--
Michael