Skip to content

Commit f8f2020

Browse files
Rephrase comments to make them clearer
The use of "we" when referring to the active backend might be misunderstood, so rephrase to make it clearer who is performing the actions discussed in the comment. Author: Junwang Zhao <zhjwpku@gmail.com> Reviewed-by: Erikjan Rijkers <er@xs4all.nl> Reviewed-by: Robert Treat <rob@xzilla.net> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CAEG8a3LRSMqkvjiURiJoSi4aGWORpiXUmUfQQK5PaD6WfPzu3w@mail.gmail.com
1 parent bcabbfc commit f8f2020

File tree

1 file changed

+3
-3
lines changed
  • src/backend/access/transam

1 file changed

+3
-3
lines changed

src/backend/access/transam/xact.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3140,7 +3140,7 @@ CommitTransactionCommand(void)
31403140
break;
31413141

31423142
/*
3143-
* We were just issued a SAVEPOINT inside a transaction block.
3143+
* The user issued a SAVEPOINT inside a transaction block.
31443144
* Start a subtransaction. (DefineSavepoint already did
31453145
* PushTransaction, so as to have someplace to put the SUBBEGIN
31463146
* state.)
@@ -3151,7 +3151,7 @@ CommitTransactionCommand(void)
31513151
break;
31523152

31533153
/*
3154-
* We were issued a RELEASE command, so we end the current
3154+
* The user issued a RELEASE command, so we end the current
31553155
* subtransaction and return to the parent transaction. The parent
31563156
* might be ended too, so repeat till we find an INPROGRESS
31573157
* transaction or subtransaction.
@@ -3168,7 +3168,7 @@ CommitTransactionCommand(void)
31683168
break;
31693169

31703170
/*
3171-
* We were issued a COMMIT, so we end the current subtransaction
3171+
* The user issued a COMMIT, so we end the current subtransaction
31723172
* hierarchy and perform final commit. We do this by rolling up
31733173
* any subtransactions into their parent, which leads to O(N^2)
31743174
* operations with respect to resource owners - this isn't that

0 commit comments

Comments
 (0)