File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.71 2004/08/29 05:06:55 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.72 2004/09/05 23:01:26 tgl Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -32,10 +32,10 @@ extern int DefaultXactIsoLevel;
32
32
extern int XactIsoLevel ;
33
33
34
34
/*
35
- * We only implement two distinct levels, so this is a convenience to
36
- * check which level we're really using internally .
35
+ * We only implement two isolation levels internally. This macro should
36
+ * be used to check which one is selected .
37
37
*/
38
- #define IsXactIsoLevelSerializable (( XactIsoLevel == XACT_REPEATABLE_READ || XactIsoLevel == XACT_SERIALIZABLE) )
38
+ #define IsXactIsoLevelSerializable (XactIsoLevel >= XACT_REPEATABLE_READ)
39
39
40
40
/* Xact read-only state */
41
41
extern bool DefaultXactReadOnly ;
You can’t perform that action at this time.
0 commit comments