diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-05 23:01:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-05 23:01:26 +0000 |
commit | 7488929c96cba67a29ed7c8c77ca5373bf490e47 (patch) | |
tree | 87ffb44fcf8b3267c98208a46966fb5ff091c47c /src | |
parent | 1a86e6eabfd02cec1253a7eaf8a5f859193388ad (diff) | |
download | postgresql-7488929c96cba67a29ed7c8c77ca5373bf490e47.tar.gz postgresql-7488929c96cba67a29ed7c8c77ca5373bf490e47.zip |
Simplify IsXactIsoLevelSerializable test. A cycle saved is a cycle
earned ...
Diffstat (limited to 'src')
-rw-r--r-- | src/include/access/xact.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/access/xact.h b/src/include/access/xact.h index 5cdef37a5fe..c30c741f27e 100644 --- a/src/include/access/xact.h +++ b/src/include/access/xact.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.71 2004/08/29 05:06:55 momjian Exp $ + * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.72 2004/09/05 23:01:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -32,10 +32,10 @@ extern int DefaultXactIsoLevel; extern int XactIsoLevel; /* - * We only implement two distinct levels, so this is a convenience to - * check which level we're really using internally. + * We only implement two isolation levels internally. This macro should + * be used to check which one is selected. */ -#define IsXactIsoLevelSerializable ((XactIsoLevel == XACT_REPEATABLE_READ || XactIsoLevel == XACT_SERIALIZABLE)) +#define IsXactIsoLevelSerializable (XactIsoLevel >= XACT_REPEATABLE_READ) /* Xact read-only state */ extern bool DefaultXactReadOnly; |