[Sqlrelay-discussion] svr_connection counter patch
Brought to you by:
mused
|
From: Renat S. <sr...@st...> - 2010-04-01 09:47:31
|
In some conditions "Open Server Connections" counter shows number of connections less than we actually have. Look at src/connections/oracle8/main.C: If initConnection() returns false, we call cleanUp() .. closeConnection() .. logOutUpdateStats(). But initConnection() could return false without calling attemptLogIn() .. logInUpdateStats() and in this case open_svr_connections will be decremented without being incremented. The small patch that I attached solves this problem. -- Renat Sabitov e-mail: sr...@st... Stack Soft jid: sr...@ja... |