Fix for re-sync logic in reading packet from backend.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 12 Dec 2017 06:18:56 +0000 (15:18 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 12 Dec 2017 06:18:56 +0000 (15:18 +0900)
commitcf0bb90d751ea10354953749f02a45e73ada0c32
tree2118895ef36b569279acbab9645959eb5bdef970
parentce42ffcf9f54282a157d6c85270380c8769eb7b9
Fix for re-sync logic in reading packet from backend.

read_kind_from_backend(), which reads message kind from backend,
re-syncs backend nodes when a ready for query message is
received. Unfortunately it forgot to call
pool_pending_message_pull_out() to delete sync pending message. This
leads to random stuck while reading packets from backend. Fix this to
call pool_pending_message_pull_out().
src/protocol/pool_process_query.c