summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii2015-09-24 01:29:37 +0000
committerTatsuo Ishii2015-09-24 01:29:37 +0000
commit52c823e9ea6d0becb2e089bd21d0cd53093a3eb7 (patch)
treea21eb36607b630ee3d1c7a5371b4328389d08e73
parenta8add218e5a3dd0e98606c52215e2e830985f0f0 (diff)
Remove "//" comments.extended_protocol_performance
-rw-r--r--src/protocol/pool_process_query.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/protocol/pool_process_query.c b/src/protocol/pool_process_query.c
index 01c8d9149..5af31aa9e 100644
--- a/src/protocol/pool_process_query.c
+++ b/src/protocol/pool_process_query.c
@@ -817,7 +817,9 @@ POOL_STATUS SimpleForwardToBackend(char kind, POOL_CONNECTION *frontend,
int sendlen;
int i;
sendlen = htonl(len + 4);
+#ifdef DEBUG
char msgbuf[256];
+#endif
if (len == 0)
{
@@ -828,10 +830,10 @@ POOL_STATUS SimpleForwardToBackend(char kind, POOL_CONNECTION *frontend,
{
if (VALID_BACKEND(i))
{
-//#ifdef NOT_USED
+#ifdef DEBUG
snprintf(msgbuf, sizeof(msgbuf), "%c message", kind);
per_node_statement_log(backend, i, msgbuf);
-//#endif
+#endif
pool_write(CONNECTION(backend, i), &kind, 1);
pool_write_and_flush(CONNECTION(backend,i), &sendlen, sizeof(sendlen));
@@ -849,10 +851,10 @@ POOL_STATUS SimpleForwardToBackend(char kind, POOL_CONNECTION *frontend,
{
if (VALID_BACKEND(i))
{
-//#ifdef NOT_USED
+#ifdef DEBUG
snprintf(msgbuf, sizeof(msgbuf), "%c message", kind);
per_node_statement_log(backend, i, msgbuf);
-//#endif
+#endif
pool_write(CONNECTION(backend, i), &kind, 1);
pool_write(CONNECTION(backend,i), &sendlen, sizeof(sendlen));