Modify pool_send_auth_ok so that it reports backend process id.
authorTatsuo Ishii <ishii at sraoss.co.jp>
Mon, 17 Apr 2006 03:59:25 +0000 (03:59 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Mon, 17 Apr 2006 03:59:25 +0000 (03:59 +0000)
This will help debugging pgpool.

pool_auth.c

index 9280edcebdbfe3d2e8a773a40624887655f9b56e..f9a68af340811584cc194441b07384cbb8368899 100644 (file)
@@ -407,6 +407,9 @@ static POOL_STATUS pool_send_auth_ok(POOL_CONNECTION *frontend, int pid, int key
                len = htonl(12);
                pool_write(frontend, &len, sizeof(len));
        }
+
+       pool_debug("pool_send_auth_ok: send pid %d to frontend", ntohl(pid));
+
        pool_write(frontend, &pid, sizeof(pid));
        if (pool_write_and_flush(frontend, &key, sizeof(key)) < 0)
        {