audit_name != SEPGSQL_AVC_NOAUDIT &&
sepgsql_get_mode() != SEPGSQL_MODE_INTERNAL)
{
- sepgsql_audit_log(!!denied,
+ sepgsql_audit_log(denied != 0,
cache->scontext,
cache->tcontext_is_valid ?
cache->tcontext : sepgsql_avc_unlabeled(),
LWLockRelease(XidGenLock);
}
- Assert(!!(parsed->xinfo & XACT_XINFO_HAS_ORIGIN) == (origin_id != InvalidRepOriginId));
+ Assert(((parsed->xinfo & XACT_XINFO_HAS_ORIGIN) == 0) ==
+ (origin_id == InvalidRepOriginId));
if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)
commit_time = parsed->origin_timestamp;
errmsg_internal("%d: %s(%s): excl %u shared %u haswaiters %u waiters %u rOK %d",
MyProcPid,
where, MainLWLockNames[id],
- !!(state & LW_VAL_EXCLUSIVE),
+ (state & LW_VAL_EXCLUSIVE) != 0,
state & LW_SHARED_MASK,
- !!(state & LW_FLAG_HAS_WAITERS),
+ (state & LW_FLAG_HAS_WAITERS) != 0,
pg_atomic_read_u32(&lock->nwaiters),
- !!(state & LW_FLAG_RELEASE_OK))));
+ (state & LW_FLAG_RELEASE_OK) != 0)));
else
ereport(LOG,
(errhidestmt(true),
errmsg_internal("%d: %s(%s %d): excl %u shared %u haswaiters %u waiters %u rOK %d",
MyProcPid,
where, T_NAME(lock), id,
- !!(state & LW_VAL_EXCLUSIVE),
+ (state & LW_VAL_EXCLUSIVE) != 0,
state & LW_SHARED_MASK,
- !!(state & LW_FLAG_HAS_WAITERS),
+ (state & LW_FLAG_HAS_WAITERS) != 0,
pg_atomic_read_u32(&lock->nwaiters),
- !!(state & LW_FLAG_RELEASE_OK))));
+ (state & LW_FLAG_RELEASE_OK) != 0)));
}
}
/* Access macros for above flags */
#define XactCompletionRelcacheInitFileInval(xinfo) \
- (!!(xinfo & XACT_COMPLETION_UPDATE_RELCACHE_FILE))
+ ((xinfo & XACT_COMPLETION_UPDATE_RELCACHE_FILE) != 0)
#define XactCompletionForceSyncCommit(xinfo) \
- (!!(xinfo & XACT_COMPLETION_FORCE_SYNC_COMMIT))
+ ((xinfo & XACT_COMPLETION_FORCE_SYNC_COMMIT) != 0)
typedef struct xl_xact_assignment
{