07.03.2014, 14:47
Nice one ! Thanks !
What should I replace mysql_free_result with after updating from R37 to R38?
|
Why do you use mysql_free_result at all? mysql_free_result was a PAWN function defined inside the include which did absolutely nothing.
|
Why do you use mysql_free_result at all? mysql_free_result was a PAWN function defined inside the include which did absolutely nothing.
|
[03:38:19] [DEBUG] CMySQLHandle::Create - creating new connection.. [03:38:19] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called [03:38:19] [DEBUG] CMySQLHandle::Create - connection created (id: 1) [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled
Is there a reason why it spams my logs? or is this normal?
Code:
[03:38:19] [DEBUG] CMySQLHandle::Create - creating new connection.. [03:38:19] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called [03:38:19] [DEBUG] CMySQLHandle::Create - connection created (id: 1) [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - establishing connection to database... [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled [03:38:19] [DEBUG] CMySQLConnection::Connect - connection was successful [03:38:19] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been disabled |
Originally Posted by F.A.Q.
Q: I get a ton of debug messages regarding connections even though I'm calling mysql_connect only once, why is that so?
A: That's because the plugin uses multiple direct database connections per connection handle. The number of direct connections (and thus the number of those log messages) is 2+pool_size. |