fixup! Introduces STATUS_WAITING_COMPAT macro

talha_testpg14
Sait Talha Nisanci 2021-08-26 23:42:48 +03:00
parent d7ca503b40
commit 7a55aa18f2
2 changed files with 3 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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)