]> granicus.if.org Git - pgbouncer/commitdiff
Further memory conservation by making state bitfield :8.
authorMarko Kreen <markokr@gmail.com>
Wed, 16 Jul 2008 14:26:47 +0000 (14:26 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 16 Jul 2008 14:26:47 +0000 (14:26 +0000)
Does this need #ifdef __GCC__?

include/bouncer.h

index 50a5b2e87dbed6ce5d559f3029d5d48237895fb8..e398a2649959d789bcd5148d017569ba8d5a118a 100644 (file)
@@ -251,7 +251,7 @@ struct PgSocket {
 
        PgUser *auth_user;      /* presented login, for client it may differ from pool->user */
 
-       SocketState state;      /* this also specifies socket location */
+       SocketState state:8;    /* this also specifies socket location */
 
        bool ready:1;           /* server: accepts new query */
        bool close_needed:1;    /* server: this socket must be closed ASAP */