Fix wrong positioned comment.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 22 Sep 2025 02:29:11 +0000 (11:29 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 22 Sep 2025 02:29:11 +0000 (11:29 +0900)
Backpatch-through: v4.2

src/protocol/CommandComplete.c

index ef144ca317267a27e36553316298669e6726aaad..a3b8f0ea194ffecc79e58566be80562a46eb75ab 100644 (file)
@@ -5,7 +5,7 @@
  * pgpool: a language independent connection pool server for PostgreSQL
  * written by Tatsuo Ishii
  *
- * Copyright (c) 2003-2024     PgPool Global Development Group
+ * Copyright (c) 2003-2025     PgPool Global Development Group
  *
  * Permission to use, copy, modify, and distribute this software and
  * its documentation for any purpose and without fee is hereby
@@ -111,8 +111,8 @@ CommandComplete(POOL_CONNECTION *frontend, POOL_CONNECTION_POOL *backend, bool c
                                if (session_context->query_context &&
                                        session_context->query_context->parse_tree &&
                                        is_start_transaction_query(session_context->query_context->parse_tree))
-                                       TSTATE(backend, i) = 'T';       /* we are inside a transaction */
                                {
+                                       TSTATE(backend, i) = 'T';       /* we are inside a transaction */
                                        ereport(DEBUG1,
                                                        (errmsg("processing command complete"),
                                                         errdetail("set transaction state to T")));