mirror of https://github.com/citusdata/citus.git
fixup! Introduces STATUS_WAITING_COMPAT macro
parent
d7ca503b40
commit
7a55aa18f2
|
@ -456,7 +456,7 @@ BuildLocalWaitGraph(void)
|
||||||
static bool
|
static bool
|
||||||
IsProcessWaitingForSafeOperations(PGPROC *proc)
|
IsProcessWaitingForSafeOperations(PGPROC *proc)
|
||||||
{
|
{
|
||||||
if (proc->waitStatus != STATUS_WAITING_COMPAT)
|
if (proc->waitStatus != PROC_WAIT_STATUS_WAITING)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -713,7 +713,7 @@ AddProcToVisit(PROCStack *remaining, PGPROC *proc)
|
||||||
bool
|
bool
|
||||||
IsProcessWaitingForLock(PGPROC *proc)
|
IsProcessWaitingForLock(PGPROC *proc)
|
||||||
{
|
{
|
||||||
return proc->waitStatus == STATUS_WAITING_COMPAT;
|
return proc->waitStatus == PROC_WAIT_STATUS_WAITING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_14
|
#if PG_VERSION_NUM >= PG_VERSION_14
|
||||||
#define AlterTableStmtObjType(a) ((a)->objtype)
|
#define AlterTableStmtObjType(a) ((a)->objtype)
|
||||||
#define STATUS_WAITING_COMPAT PROC_WAIT_STATUS_WAITING
|
|
||||||
#define getObjectTypeDescription_compat(a, b) getObjectTypeDescription(a, b)
|
#define getObjectTypeDescription_compat(a, b) getObjectTypeDescription(a, b)
|
||||||
#define getObjectIdentity_compat(a, b) getObjectIdentity(a, b)
|
#define getObjectIdentity_compat(a, b) getObjectIdentity(a, b)
|
||||||
|
|
||||||
|
@ -65,7 +64,7 @@
|
||||||
#define AlterTableStmtObjType(a) ((a)->relkind)
|
#define AlterTableStmtObjType(a) ((a)->relkind)
|
||||||
#define F_NEXTVAL F_NEXTVAL_OID
|
#define F_NEXTVAL F_NEXTVAL_OID
|
||||||
#define ROLE_PG_MONITOR DEFAULT_ROLE_MONITOR
|
#define ROLE_PG_MONITOR DEFAULT_ROLE_MONITOR
|
||||||
#define STATUS_WAITING_COMPAT STATUS_WAITING
|
#define PROC_WAIT_STATUS_WAITING STATUS_WAITING
|
||||||
#define getObjectTypeDescription_compat(a, b) getObjectTypeDescription(a)
|
#define getObjectTypeDescription_compat(a, b) getObjectTypeDescription(a)
|
||||||
#define getObjectIdentity_compat(a, b) getObjectIdentity(a)
|
#define getObjectIdentity_compat(a, b) getObjectIdentity(a)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue