Fix incorrect assignment for nodeid in TransactionIdGetCommitTsData()

From: wangpeng <215722532(at)qq(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Fix incorrect assignment for nodeid in TransactionIdGetCommitTsData()
Date: 2026-02-05 03:38:37
Message-ID: tencent_FED33DE297DEA5EC5E888D3B9F7E50D6EF07@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

This is my first patch
There is an incorrect assignment of nodeid = 0 in
TransactionIdGetCommitTsData() (commit_ts.c).
Elsewhere in the file, the code consistently uses InvalidReplOriginId.
Even though InvalidReplOriginId also evaluates to 0, it should be used
here for clarity and consistency.

Best regards,
Wang Peng

Attachment Content-Type Size
v1-0001-Subject-Fix-incorrect-assignment-for-nodeid.patch text/plain 1.0 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2026-02-05 03:57:45 Re: Warn when creating or enabling a subscription with max_logical_replication_workers = 0
Previous Message jian he 2026-02-05 03:29:07 Re: pg_dumpall --roles-only interact with other options