Fix wrong comment.
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 8 Sep 2017 04:22:50 +0000 (13:22 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 8 Sep 2017 04:22:50 +0000 (13:22 +0900)
The comment for pool_discard_except_sync_and_ready_for_query() did not
match with what the actual code does.

src/protocol/pool_proto_modules.c

index 1385826aea469afbd9539c5a5ab457f57503c40c..1ab5757f4698f3006f2c6699432268f6826090ce 100644 (file)
@@ -3518,8 +3518,8 @@ static void pool_wait_till_ready_for_query(POOL_CONNECTION_POOL *backend)
  * Called when error response received in streaming replication mode and doing
  * extended query. Remove all pending messages and backend message buffer data
  * except POOL_SYNC pending message and ready for query.  If sync message is
- * not received yet, call ProcessFrontendResponse() to read data from
- * frontend.
+ * not received yet, continue to read data from frontend until a sync message
+ * is read.
  */
 static void pool_discard_except_sync_and_ready_for_query(POOL_CONNECTION *frontend,
                                                                                                                 POOL_CONNECTION_POOL *backend)