mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
Make GetMultiXactIdMembers() a public function.
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.6 2005/08/01 20:31:06 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.7 2005/08/20 01:29:27 ishii Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@@ -200,7 +200,6 @@ static MemoryContext MXactContext = NULL;
|
|||||||
/* internal MultiXactId management */
|
/* internal MultiXactId management */
|
||||||
static void MultiXactIdSetOldestVisible(void);
|
static void MultiXactIdSetOldestVisible(void);
|
||||||
static MultiXactId CreateMultiXactId(int nxids, TransactionId *xids);
|
static MultiXactId CreateMultiXactId(int nxids, TransactionId *xids);
|
||||||
static int GetMultiXactIdMembers(MultiXactId multi, TransactionId **xids);
|
|
||||||
static void RecordNewMultiXact(MultiXactId multi, MultiXactOffset offset,
|
static void RecordNewMultiXact(MultiXactId multi, MultiXactOffset offset,
|
||||||
int nxids, TransactionId *xids);
|
int nxids, TransactionId *xids);
|
||||||
static MultiXactId GetNewMultiXactId(int nxids, MultiXactOffset *offset);
|
static MultiXactId GetNewMultiXactId(int nxids, MultiXactOffset *offset);
|
||||||
@@ -816,7 +815,7 @@ GetNewMultiXactId(int nxids, MultiXactOffset *offset)
|
|||||||
* still running; in that case we have not actually looked them up, and
|
* still running; in that case we have not actually looked them up, and
|
||||||
* *xids is not set.
|
* *xids is not set.
|
||||||
*/
|
*/
|
||||||
static int
|
int
|
||||||
GetMultiXactIdMembers(MultiXactId multi, TransactionId **xids)
|
GetMultiXactIdMembers(MultiXactId multi, TransactionId **xids)
|
||||||
{
|
{
|
||||||
int pageno;
|
int pageno;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/access/multixact.h,v 1.4 2005/08/01 20:31:13 tgl Exp $
|
* $PostgreSQL: pgsql/src/include/access/multixact.h,v 1.5 2005/08/20 01:29:16 ishii Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef MULTIXACT_H
|
#ifndef MULTIXACT_H
|
||||||
#define MULTIXACT_H
|
#define MULTIXACT_H
|
||||||
@@ -44,6 +44,7 @@ extern bool MultiXactIdIsRunning(MultiXactId multi);
|
|||||||
extern void MultiXactIdWait(MultiXactId multi);
|
extern void MultiXactIdWait(MultiXactId multi);
|
||||||
extern bool ConditionalMultiXactIdWait(MultiXactId multi);
|
extern bool ConditionalMultiXactIdWait(MultiXactId multi);
|
||||||
extern void MultiXactIdSetOldestMember(void);
|
extern void MultiXactIdSetOldestMember(void);
|
||||||
|
extern int GetMultiXactIdMembers(MultiXactId multi, TransactionId **xids);
|
||||||
|
|
||||||
extern void AtEOXact_MultiXact(void);
|
extern void AtEOXact_MultiXact(void);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user