Fix to http://bugs.skysql.com/show_bug.cgi?id=469, connection counter leaks in master.
Removed redundant counter increments.
This commit is contained in:
parent
7558abb6fa
commit
97ab902ede
@ -381,7 +381,7 @@ static void refreshInstance(
|
||||
* used in slave selection.
|
||||
*/
|
||||
if (!rlag_enabled)
|
||||
{
|
||||
{
|
||||
if (rlag_limited)
|
||||
{
|
||||
LOGIF(LE, (skygw_log_write_flush(
|
||||
@ -1985,7 +1985,7 @@ static bool select_connect_backend_servers(
|
||||
backend_ref[i].bref_state = 0;
|
||||
bref_set_state(&backend_ref[i],
|
||||
BREF_IN_USE);
|
||||
/**
|
||||
/**
|
||||
* Increase backend connection counter.
|
||||
* Server's stats are _increased_ in
|
||||
* dcb.c:dcb_alloc !
|
||||
@ -2040,8 +2040,6 @@ static bool select_connect_backend_servers(
|
||||
bref_set_state(&backend_ref[i],
|
||||
BREF_IN_USE);
|
||||
/** Increase backend connection counters */
|
||||
atomic_add(&b->backend_server->stats.n_current, 1);
|
||||
atomic_add(&b->backend_server->stats.n_connections, 1);
|
||||
atomic_add(&b->backend_conn_count, 1);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user