From: Tatsuo Ishii Date: Thu, 2 Feb 2023 10:34:00 +0000 (+0900) Subject: Fix comment mistakes. X-Git-Tag: V4_5_0_BETA1~115 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=66acf94322cfc7b01013009b489633c822b4145a;p=pgpool2.git Fix comment mistakes. --- diff --git a/src/context/pool_query_context.c b/src/context/pool_query_context.c index bbead564a..5ba6ce2da 100644 --- a/src/context/pool_query_context.c +++ b/src/context/pool_query_context.c @@ -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) diff --git a/src/protocol/pool_proto_modules.c b/src/protocol/pool_proto_modules.c index 81ef4af9e..dbcd7039f 100644 --- a/src/protocol/pool_proto_modules.c +++ b/src/protocol/pool_proto_modules.c @@ -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)) {