greenplumn gdddetector 源码
greenplumn gdddetector 代码
文件路径:/src/backend/utils/gdd/gdddetector.h
/*-------------------------------------------------------------------------
*
* gdddetector.h
* Global DeadLock Detector - Detector Algorithm
*
*
* Copyright (c) 2018-Present VMware, Inc. or its affiliates.
*
*
*-------------------------------------------------------------------------
*/
#ifndef GDD_DETECTOR_H
#define GDD_DETECTOR_H
#include "nodes/pg_list.h"
#include "lib/stringinfo.h"
typedef struct GddCtx GddCtx;
typedef struct GddPair GddPair;
typedef struct GddMap GddMap;
typedef struct GddMapIter GddMapIter;
typedef struct GddListIter GddListIter;
typedef struct GddEdge GddEdge;
typedef struct GddVert GddVert;
typedef struct GddGraph GddGraph;
typedef struct GddStat GddStat;
extern GddCtx *GddCtxNew(void);
extern GddEdge *GddCtxAddEdge(GddCtx *ctx, int segid, DistributedTransactionId from, DistributedTransactionId to, bool solid);
extern void GddCtxReduce(GddCtx *ctx);
extern List *GddCtxBreakDeadLock(GddCtx *ctx);
extern bool GddCtxEmpty(GddCtx *ctx);
#endif /* GDD_DETECTOR_H */
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦