Fix a typo in decode.c

Started by Zhijie Hou (Fujitsu)over 2 years ago2 messages
#1Zhijie Hou (Fujitsu)
houzj.fnst@fujitsu.com
1 attachment(s)

Hi,

When reading the code, I noticed a typo in the description of WAL record.

/*
- * Decode XLOG_HEAP2_MULTI_INSERT_insert record into multiple tuplebufs.
+ * Decode XLOG_HEAP2_MULTI_INSERT record into multiple tuplebufs.
  *

And attach a small patch to fix it.

Best Regards,
Hou Zhijie

Attachments:

0001-fix-typo-in-decode.c.patchapplication/octet-stream; name=0001-fix-typo-in-decode.c.patchDownload
From 1f68a9ef1eac648d24cfd86dca4bbac3b12ff4c2 Mon Sep 17 00:00:00 2001
From: Hou Zhijie <houzj.fnst@cn.fujitsu.com>
Date: Fri, 1 Sep 2023 10:22:40 +0800
Subject: [PATCH] fix typo in decode.c

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

diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c
index 7039d425e2..730061c9da 100644
--- a/src/backend/replication/logical/decode.c
+++ b/src/backend/replication/logical/decode.c
@@ -1089,7 +1089,7 @@ DecodeTruncate(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
 }
 
 /*
- * Decode XLOG_HEAP2_MULTI_INSERT_insert record into multiple tuplebufs.
+ * Decode XLOG_HEAP2_MULTI_INSERT record into multiple tuplebufs.
  *
  * Currently MULTI_INSERT will always contain the full tuples.
  */
-- 
2.30.0.windows.2

#2Amit Kapila
amit.kapila16@gmail.com
In reply to: Zhijie Hou (Fujitsu) (#1)
Re: Fix a typo in decode.c

On Fri, Sep 1, 2023 at 5:09 PM Zhijie Hou (Fujitsu)
<houzj.fnst@fujitsu.com> wrote:

When reading the code, I noticed a typo in the description of WAL record.

/*
- * Decode XLOG_HEAP2_MULTI_INSERT_insert record into multiple tuplebufs.
+ * Decode XLOG_HEAP2_MULTI_INSERT record into multiple tuplebufs.
*

And attach a small patch to fix it.

LGTM.

--
With Regards,
Amit Kapila.