diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2022-08-04 16:30:06 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2022-08-04 16:30:06 +0200 |
commit | f8f20203c2a4352491535f971b51802a8218bcd3 (patch) | |
tree | b720be480f18a87c7047cf5a5ab863d0e7451e08 | |
parent | bcabbfc6a94bb1d59e380f1bcb7cd5da8338cd11 (diff) | |
download | postgresql-f8f20203c2a4352491535f971b51802a8218bcd3.tar.gz postgresql-f8f20203c2a4352491535f971b51802a8218bcd3.zip |
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
-rw-r--r-- | src/backend/access/transam/xact.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index ce1417b8f01..50f092d7eb3 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -3140,7 +3140,7 @@ CommitTransactionCommand(void) break; /* - * We were just issued a SAVEPOINT inside a transaction block. + * The user issued a SAVEPOINT inside a transaction block. * Start a subtransaction. (DefineSavepoint already did * PushTransaction, so as to have someplace to put the SUBBEGIN * state.) @@ -3151,7 +3151,7 @@ CommitTransactionCommand(void) break; /* - * We were issued a RELEASE command, so we end the current + * The user issued a RELEASE command, so we end the current * subtransaction and return to the parent transaction. The parent * might be ended too, so repeat till we find an INPROGRESS * transaction or subtransaction. @@ -3168,7 +3168,7 @@ CommitTransactionCommand(void) break; /* - * We were issued a COMMIT, so we end the current subtransaction + * The user issued a COMMIT, so we end the current subtransaction * hierarchy and perform final commit. We do this by rolling up * any subtransactions into their parent, which leads to O(N^2) * operations with respect to resource owners - this isn't that |