greenplumn cdblocaldistribxact 源码
greenplumn cdblocaldistribxact 代码
文件路径:/src/include/cdb/cdblocaldistribxact.h
/*-------------------------------------------------------------------------
*
* cdblocaldistribxact.h
*
* Portions Copyright (c) 2007-2008, Greenplum inc
* Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
*
*
* IDENTIFICATION
* src/include/cdb/cdblocaldistribxact.h
*
*-------------------------------------------------------------------------
*/
#ifndef CDBLOCALDISTRIBXACT_H
#define CDBLOCALDISTRIBXACT_H
typedef enum
{
LOCALDISTRIBXACT_STATE_NONE = 0,
LOCALDISTRIBXACT_STATE_ACTIVE,
LOCALDISTRIBXACT_STATE_COMMITTED,
LOCALDISTRIBXACT_STATE_ABORTED,
LOCALDISTRIBXACT_STATE_PREPARED
} LocalDistribXactState;
/*
* Local information in the database instance (master or segment) on
* a distributed transaction.
*/
typedef struct LocalDistribXactData
{
/*
* Current distributed transaction state.
*/
LocalDistribXactState state;
/*
* Distributed xid.
*/
DistributedTransactionId distribXid;
} LocalDistribXactData;
extern void LocalDistribXact_ChangeState(int pgprocno,
LocalDistribXactState newState);
extern char* LocalDistribXact_DisplayString(int pgprocno);
extern bool LocalDistribXactCache_CommittedFind(
TransactionId localXid,
DistributedTransactionId *distribXid);
extern void LocalDistribXactCache_AddCommitted(
TransactionId localXid,
DistributedTransactionId distribXid);
extern void LocalDistribXactCache_ShowStats(char *nameStr);
#endif /* CDBLOCALDISTRIBXACT_H */
相关信息
相关文章
greenplumn cdbappendonlyblockdirectory 源码
greenplumn cdbappendonlystorage 源码
greenplumn cdbappendonlystorage_int 源码
greenplumn cdbappendonlystorageformat 源码
greenplumn cdbappendonlystoragelayer 源码
greenplumn cdbappendonlystorageread 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦