Use proper macro to access TransactionId

In commit f10a025cfe97 I mistakenly used list_member_oid in a place
where list_member_xid is called for.  (Currently innocuous as both
typedefs are pretty much identical, but if we change either, it'll
become broken.)  Repair.

Author: Hou Zhijie <houzj.fnst@fujitsu.com>
Discussion: https://postgr.es/m/OS0PR01MB5716E2399494D4CB1A28A091942A9@OS0PR01MB5716.jpnprd01.prod.outlook.com
This commit is contained in:
Alvaro Herrera 2022-10-20 09:37:06 +02:00
parent 16b1fe0037
commit 7fd1ae987a
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE

View File

@ -747,7 +747,7 @@ list_member_xid(const List *list, TransactionId datum)
foreach(cell, list)
{
if (lfirst_oid(cell) == datum)
if (lfirst_xid(cell) == datum)
return true;
}