]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add heap_id field to fr_pool_connection
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 28 Mar 2018 10:57:00 +0000 (11:57 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 28 Mar 2018 10:57:00 +0000 (11:57 +0100)
src/main/pool.c

index f2ef5662577e73c04efca47e3721c3649d4e925c..ad0bea110e78bde50d42b5febd7b801e944891be 100644 (file)
@@ -47,6 +47,7 @@ static int connection_check(fr_pool_t *pool, REQUEST *request);
 struct fr_pool_connection {
        fr_pool_connection_t    *prev;                  //!< Previous connection in list.
        fr_pool_connection_t    *next;                  //!< Next connection in list.
+       size_t          heap_id;                        //!< For the next connection heap.
 
        time_t          created;                //!< Time connection was created.
        struct timeval  last_reserved;          //!< Last time the connection was reserved.
@@ -61,8 +62,6 @@ struct fr_pool_connection {
                                                //!< handle.
        bool            in_use;                 //!< Whether the connection is currently reserved.
 
-       int             heap;                   //!< For the next connection heap.
-
        bool            needs_reconnecting;     //!< Reconnect this connection before use.
 
 #ifdef PTHREAD_DEBUG