greenplumn cdbdtxcontextinfo 源码
greenplumn cdbdtxcontextinfo 代码
文件路径:/src/include/cdb/cdbdtxcontextinfo.h
/*-------------------------------------------------------------------------
*
* cdbdtxcontextinfo.h
*
* Portions Copyright (c) 2007-2008, Greenplum inc
* Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
*
*
* IDENTIFICATION
* src/include/cdb/cdbdtxcontextinfo.h
*
*-------------------------------------------------------------------------
*/
#ifndef CDBDTXCONTEXTINFO_H
#define CDBDTXCONTEXTINFO_H
#include "utils/snapshot.h"
#define DtxContextInfo_StaticInit {InvalidDistributedTransactionId,false,false,DistributedSnapshot_StaticInit,0,0,0,0}
typedef struct DtxContextInfo
{
DistributedTransactionId distributedXid;
bool haveDistributedSnapshot;
bool cursorContext;
DistributedSnapshot distributedSnapshot;
int distributedTxnOptions;
uint32 segmateSync;
uint32 nestingLevel;
/* currentCommandId of QD, for debugging only */
CommandId curcid;
} DtxContextInfo;
extern DtxContextInfo QEDtxContextInfo;
extern void DtxContextInfo_Reset(DtxContextInfo *dtxContextInfo);
extern void DtxContextInfo_CreateOnMaster(DtxContextInfo *dtxContextInfo, bool inCursor,
int txnOptions, Snapshot snapshot);
extern int DtxContextInfo_SerializeSize(DtxContextInfo *dtxContextInfo);
extern void DtxContextInfo_Serialize(char *buffer, DtxContextInfo *dtxContextInfo);
extern void DtxContextInfo_Deserialize(const char *serializedDtxContextInfo,
int serializedDtxContextInfolen,
DtxContextInfo *dtxContextInfo);
extern void DtxContextInfo_Copy(DtxContextInfo *target, DtxContextInfo *source);
#endif /* CDBDTXCONTEXTINFO_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框自动聚焦