]> granicus.if.org Git - pgbouncer/commitdiff
debug noise to show struct sizes
authorMarko Kreen <markokr@gmail.com>
Thu, 6 Dec 2007 09:08:04 +0000 (09:08 +0000)
committerMarko Kreen <markokr@gmail.com>
Thu, 6 Dec 2007 09:08:04 +0000 (09:08 +0000)
src/main.c

index 00319a74c11fb4f103ae007b8853b92336ab1ad3..2a9242345d63fd4c753f36f6e21ad043c1667bba 100644 (file)
@@ -420,6 +420,10 @@ static void check_limits(void)
        List *item;
        PgDatabase *db;
 
+       log_noise("event: %d, SBuf: %d, PgSocket: %d, Full PgSocket: %d, buf ofs: %d",
+                 sizeof(struct event), sizeof(SBuf), sizeof(PgSocket), PG_SOCKET_SIZE,
+                 offsetof(SBuf, buf));
+
        /* load limits */
        err = getrlimit(RLIMIT_NOFILE, &lim);
        if (err < 0) {