pgpool2.git / summary / log / commit / refs
commit 2e223af332f21196edbf2a56ecc5762c98e4da47
Author: Tatsuo Ishii <ishii@sraoss.co.jp>
Date: Wed Jul 08 01:25:12 2020 +0000
Fix per_node_error_log() so that it respects unread parameter.
per_node_error_log() unconditionally set the "unread" parameter to
true when it should have respected the unread parameter given by user.
It seems all callers to per_node_error_log() set the unread parameter
to true anyway. The only exception is pool_do_auth. As far as testing
test 03[0-4] regression tests, the change is ok.
In summary this change will not affect to Pgpool-II but bug is bug.
src/protocol/pool_proto_modules.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/protocol/pool_proto_modules.c b/src/protocol/pool_proto_modules.c
index d2a231225..da9addcbe 100644
--- a/src/protocol/pool_proto_modules.c
+++ b/src/protocol/pool_proto_modules.c
@@ -3464,7 +3464,7 @@ per_node_error_log(POOL_CONNECTION_POOL * backend, int node_id, char *query, cha
return;
}
- if (pool_extract_error_message(true, CONNECTION(backend, node_id), MAJOR(backend), true, &message) == 1)
+ if (pool_extract_error_message(true, CONNECTION(backend, node_id), MAJOR(backend), unread, &message) == 1)
{
ereport(LOG,
(errmsg("%s: DB node id: %d backend pid: %d statement: \"%s\" message: \"%s\"",
[parent: 0fdbbb3698ab]