Fix comment mistakes.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 2 Feb 2023 10:34:00 +0000 (19:34 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 2 Feb 2023 10:34:00 +0000 (19:34 +0900)
src/context/pool_query_context.c
src/protocol/pool_proto_modules.c

index bbead564ae27021f44dcb59e3b80dc289fc3f486..5ba6ce2da00a22097feff4cf89fb0e439bf2bf48 100644 (file)
@@ -803,9 +803,9 @@ pool_send_and_wait(POOL_QUERY_CONTEXT * query_context,
 
        /*
         * If the query is BEGIN READ WRITE or BEGIN ... SERIALIZABLE in
-        * native replication mode, we send BEGIN to standbys instead.
-        * original_query which is BEGIN READ WRITE is sent to primary.
-        * rewritten_query which is BEGIN is sent to standbys.
+        * streaming replication mode, we send BEGIN to standbys instead.
+        * The original_query which is BEGIN READ WRITE is sent to primary.
+        * The rewritten_query BEGIN is sent to standbys.
         */
        if (pool_need_to_treat_as_if_default_transaction(query_context))
        {
@@ -956,9 +956,9 @@ pool_extended_send_and_wait(POOL_QUERY_CONTEXT * query_context,
 
        /*
         * If the query is BEGIN READ WRITE or BEGIN ... SERIALIZABLE in
-        * native replication mode, we send BEGIN to standbys instead.
-        * original_query which is BEGIN READ WRITE is sent to primary.
-        * rewritten_query which is BEGIN is sent to standbys.
+        * streaming replication mode, we send BEGIN to standbys instead.
+        * The original_query which is BEGIN READ WRITE is sent to primary.
+        * The rewritten_query BEGIN is sent to standbys.
         */
        if (pool_need_to_treat_as_if_default_transaction(query_context))
        {
@@ -1775,10 +1775,10 @@ is_serializable(TransactionStmt *node)
 
 /*
  * If the query is BEGIN READ WRITE or
- * BEGIN ... SERIALIZABLE in native replication mode,
+ * BEGIN ... SERIALIZABLE in streaming replication mode,
  * we send BEGIN to standbys instead.
- * original_query which is BEGIN READ WRITE is sent to primary.
- * rewritten_query which is BEGIN is sent to standbys.
+ * The original_query which is BEGIN READ WRITE is sent to primary.
+ * The rewritten_query BEGIN is sent to standbys.
  */
 bool
 pool_need_to_treat_as_if_default_transaction(POOL_QUERY_CONTEXT * query_context)
index 81ef4af9e321e626a0f108a4fa79899df05e65cd..dbcd7039f3d32119e537a0df6e326ac455ecbdcc 100644 (file)
@@ -702,10 +702,9 @@ SimpleQuery(POOL_CONNECTION * frontend,
 
                                /*
                                 * If the query is BEGIN READ WRITE or BEGIN ... SERIALIZABLE
-                                * in native replication mode, we send BEGIN to standbys
-                                * instead. original_query which is BEGIN READ WRITE is sent
-                                * to primary. rewritten_query which is BEGIN is sent to
-                                * standbys.
+                                * in streaming replication mode, we send BEGIN to standbys
+                                * instead. The original_query which is BEGIN READ WRITE is sent
+                                * to primary. The rewritten_query BEGIN is sent to standbys.
                                 */
                                if (pool_need_to_treat_as_if_default_transaction(query_context))
                                {