From f805ce65ed209f103b525bacc8d223643412c3f0 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Fri, 8 Sep 2017 13:22:50 +0900 Subject: [PATCH] Fix wrong comment. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocol/pool_proto_modules.c b/src/protocol/pool_proto_modules.c index 1385826ae..1ab5757f4 100644 --- a/src/protocol/pool_proto_modules.c +++ b/src/protocol/pool_proto_modules.c @@ -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) -- 2.39.5