diff options
author | Peter Eisentraut | 2017-08-16 04:22:32 +0000 |
---|---|---|
committer | Peter Eisentraut | 2017-11-08 16:37:28 +0000 |
commit | 2eb4a831e5fb5d8fc17e13aea56e04af3efe27b4 (patch) | |
tree | b46993cceb7cd8b848e39a45c1bb8c73dc67b221 /src/backend/storage/lmgr/deadlock.c | |
parent | 4497f2f3b30fa5cd48898033c351bfcf01ce73e2 (diff) |
Change TRUE/FALSE to true/false
The lower case spellings are C and C++ standard and are used in most
parts of the PostgreSQL sources. The upper case spellings are only used
in some files/modules. So standardize on the standard spellings.
The APIs for ICU, Perl, and Windows define their own TRUE and FALSE, so
those are left as is when using those APIs.
In code comments, we use the lower-case spelling for the C concepts and
keep the upper-case spelling for the SQL concepts.
Reviewed-by: Michael Paquier <[email protected]>
Diffstat (limited to 'src/backend/storage/lmgr/deadlock.c')
-rw-r--r-- | src/backend/storage/lmgr/deadlock.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/storage/lmgr/deadlock.c b/src/backend/storage/lmgr/deadlock.c index 5e49c789057..968e6c0e6dc 100644 --- a/src/backend/storage/lmgr/deadlock.c +++ b/src/backend/storage/lmgr/deadlock.c @@ -307,7 +307,7 @@ GetBlockingAutoVacuumPgproc(void) * by an outer level of recursion. Add to this each possible solution * constraint for any cycle detected at this level. * - * Returns TRUE if no solution exists. Returns FALSE if a deadlock-free + * Returns true if no solution exists. Returns false if a deadlock-free * state is attainable, in which case waitOrders[] shows the required * rearrangements of lock wait queues (if any). */ @@ -432,8 +432,8 @@ TestConfiguration(PGPROC *startProc) * FindLockCycle -- basic check for deadlock cycles * * Scan outward from the given proc to see if there is a cycle in the - * waits-for graph that includes this proc. Return TRUE if a cycle - * is found, else FALSE. If a cycle is found, we return a list of + * waits-for graph that includes this proc. Return true if a cycle + * is found, else false. If a cycle is found, we return a list of * the "soft edges", if any, included in the cycle. These edges could * potentially be eliminated by rearranging wait queues. We also fill * deadlockDetails[] with information about the detected cycle; this info @@ -792,8 +792,8 @@ FindLockCycleRecurseMember(PGPROC *checkProc, * of nWaitOrders WAIT_ORDER structs in waitOrders[], with PGPROC array * workspace in waitOrderProcs[]. * - * Returns TRUE if able to build an ordering that satisfies all the - * constraints, FALSE if not (there are contradictory constraints). + * Returns true if able to build an ordering that satisfies all the + * constraints, false if not (there are contradictory constraints). */ static bool ExpandConstraints(EDGE *constraints, @@ -864,8 +864,8 @@ ExpandConstraints(EDGE *constraints, * the "blocker" in the output array. The EDGE array may well contain * edges associated with other locks; these should be ignored. * - * Returns TRUE if able to build an ordering that satisfies all the - * constraints, FALSE if not (there are contradictory constraints). + * Returns true if able to build an ordering that satisfies all the + * constraints, false if not (there are contradictory constraints). */ static bool TopoSort(LOCK *lock, |