mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Clean up MultiXactIdExpand's API by separating out the case where we
are creating a new MultiXactId from two regular XIDs. The original coding was unnecessarily complicated and didn't save any code anyway.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/access/multixact.h,v 1.1 2005/04/28 21:47:17 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/access/multixact.h,v 1.2 2005/05/03 19:42:41 tgl Exp $
|
||||
*/
|
||||
#ifndef MULTIXACT_H
|
||||
#define MULTIXACT_H
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
#define MultiXactIdIsValid(multi) ((multi) != InvalidMultiXactId)
|
||||
|
||||
extern void MultiXactIdWait(MultiXactId multi);
|
||||
extern MultiXactId MultiXactIdExpand(MultiXactId multi, bool isMulti,
|
||||
TransactionId xid);
|
||||
extern MultiXactId MultiXactIdCreate(TransactionId xid1, TransactionId xid2);
|
||||
extern MultiXactId MultiXactIdExpand(MultiXactId multi, TransactionId xid);
|
||||
extern bool MultiXactIdIsRunning(MultiXactId multi);
|
||||
extern void MultiXactIdWait(MultiXactId multi);
|
||||
extern void MultiXactIdSetOldestMember(void);
|
||||
|
||||
extern void AtEOXact_MultiXact(void);
|
||||
|
||||
Reference in New Issue
Block a user