greenplumn twophase_xlog 源码

  • 2022-08-18
  • 浏览 (343)

greenplumn twophase_xlog 代码

文件路径:/src/include/access/twophase_xlog.h

/*-------------------------------------------------------------------------
 *
 * twophase_xlog.h
 *	  Two-phase-commit state file.
 *
 *
 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * src/include/access/twophase_xlog.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef TWOPHASE_XLOG_H
#define TWOPHASE_XLOG_H

/* GPDB-specific: TwoPhaseFileHeader is defined in twophase.c in Postgres */
/*
 * Header for a 2PC state file
 */
typedef struct TwoPhaseFileHeader
{
	uint32		magic;			/* format identifier */
	uint32		total_len;		/* actual file length */
	TransactionId xid;			/* original transaction XID */
	Oid			database;		/* OID of database it was in */
	TimestampTz prepared_at;	/* time of preparation */
	Oid			owner;			/* user running the transaction */
	int32		nsubxacts;		/* number of following subxact XIDs */
	int32		ncommitrels;	/* number of delete-on-commit rels */
	int32		nabortrels;		/* number of delete-on-abort rels */
	int32		ncommitdbs;		/* number of delete-on-commit dbs */
	int32		nabortdbs;		/* number of delete-on-abort dbs */
	int32		ninvalmsgs;		/* number of cache invalidation messages */
	bool		initfileinval;	/* does relcache init file need invalidation? */
	Oid			tablespace_oid_to_delete_on_abort;
	Oid			tablespace_oid_to_delete_on_commit;
	uint16		gidlen;			/* length of the GID - GID follows the header */
	XLogRecPtr	origin_lsn;		/* lsn of this record at origin node */
	TimestampTz origin_timestamp;	/* time of prepare at origin node */
} TwoPhaseFileHeader;

#endif							/* TWOPHASE_H */

相关信息

greenplumn 源码目录

相关文章

greenplumn amapi 源码

greenplumn amvalidate 源码

greenplumn aocs_compaction 源码

greenplumn aocssegfiles 源码

greenplumn aomd 源码

greenplumn aosegfiles 源码

greenplumn appendonly_compaction 源码

greenplumn appendonly_visimap 源码

greenplumn appendonly_visimap_entry 源码

greenplumn appendonly_visimap_store 源码

0  赞