Add persistent pool statistics
Added number of times a connection was taken from the pool as well as the availability of the pool as a percentage of connections taken from the pool.
This commit is contained in:
@ -636,6 +636,7 @@ dcb_connect(SERVER *server, MXS_SESSION *session, const char *protocol)
|
||||
dcb->persistentstart = 0;
|
||||
dcb->was_persistent = true;
|
||||
dcb->last_read = hkheartbeat;
|
||||
atomic_add_uint64(&server->stats.n_from_pool, 1);
|
||||
return dcb;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user