Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e5d5d69

Browse files
pjungwirCommitfest Bot
authored and
Commitfest Bot
committed
Improve comment about snapshot macros
The comment mistakenly had "the others" for "the other", but this commit also reorders the comment so it matches the macros below. Now we describe the levels in increasing strictness. Finally, it seems easier to follow if we introduce one level at a time, rather than describing two, followed by "the other" (and then jumping back to one of the first two).
1 parent d8e5628 commit e5d5d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/access/xact.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ extern PGDLLIMPORT int XactIsoLevel;
4343

4444
/*
4545
* We implement three isolation levels internally.
46-
* The two stronger ones use one snapshot per database transaction;
47-
* the others use one snapshot per statement.
46+
* The weakest uses one snapshot per statement;
47+
* the two stronger levels use one snapshot per database transaction.
4848
* Serializable uses predicate locks in addition to snapshots.
4949
* These macros should be used to check which isolation level is selected.
5050
*/

0 commit comments

Comments
 (0)