[mod_mysql_vhost] remove dev debug code
This commit is contained in:
parent
1adf1df285
commit
93fc82c4ac
|
@ -12,9 +12,6 @@
|
|||
#include "log.h"
|
||||
|
||||
#include "stat_cache.h"
|
||||
#ifdef DEBUG_MOD_MYSQL_VHOST
|
||||
#define DEBUG
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Plugin for lighttpd to use MySQL
|
||||
|
@ -71,10 +68,6 @@ SERVER_FUNC(mod_mysql_vhost_cleanup) {
|
|||
|
||||
UNUSED(srv);
|
||||
|
||||
#ifdef DEBUG
|
||||
log_error_write(srv, __FILE__, __LINE__, "ss",
|
||||
"mod_mysql_vhost_cleanup", p ? "yes" : "NO");
|
||||
#endif
|
||||
if (!p) return HANDLER_GO_ON;
|
||||
|
||||
if (p->config_storage) {
|
||||
|
@ -112,11 +105,6 @@ static void* mod_mysql_vhost_connection_data(server *srv, connection *con, void
|
|||
|
||||
UNUSED(srv);
|
||||
|
||||
#ifdef DEBUG
|
||||
log_error_write(srv, __FILE__, __LINE__, "ss",
|
||||
"mod_mysql_connection_data", c ? "old" : "NEW");
|
||||
#endif
|
||||
|
||||
if (c) return c;
|
||||
c = calloc(1, sizeof(*c));
|
||||
|
||||
|
@ -127,17 +115,12 @@ static void* mod_mysql_vhost_connection_data(server *srv, connection *con, void
|
|||
}
|
||||
|
||||
/* destroy the plugin per connection data */
|
||||
CONNECTION_FUNC(mod_mysql_vhost_handle_connection_close) {
|
||||
CONNECTION_FUNC(mod_mysql_vhost_handle_connection_reset) {
|
||||
plugin_data *p = p_d;
|
||||
plugin_connection_data *c = con->plugin_ctx[p->id];
|
||||
|
||||
UNUSED(srv);
|
||||
|
||||
#ifdef DEBUG
|
||||
log_error_write(srv, __FILE__, __LINE__, "ss",
|
||||
"mod_mysql_vhost_handle_connection_close", c ? "yes" : "NO");
|
||||
#endif
|
||||
|
||||
if (!c) return HANDLER_GO_ON;
|
||||
|
||||
buffer_free(c->server_name);
|
||||
|
@ -365,11 +348,6 @@ GO_ON:
|
|||
buffer_copy_buffer(con->server_name, c->server_name);
|
||||
buffer_copy_buffer(con->physical.doc_root, c->document_root);
|
||||
|
||||
#ifdef DEBUG
|
||||
log_error_write(srv, __FILE__, __LINE__, "sbb",
|
||||
result ? "NOT CACHED" : "cached",
|
||||
con->server_name, con->physical.doc_root);
|
||||
#endif
|
||||
return HANDLER_GO_ON;
|
||||
|
||||
ERR500:
|
||||
|
@ -390,7 +368,7 @@ int mod_mysql_vhost_plugin_init(plugin *p) {
|
|||
|
||||
p->init = mod_mysql_vhost_init;
|
||||
p->cleanup = mod_mysql_vhost_cleanup;
|
||||
p->connection_reset = mod_mysql_vhost_handle_connection_close;
|
||||
p->connection_reset = mod_mysql_vhost_handle_connection_reset;
|
||||
|
||||
p->set_defaults = mod_mysql_vhost_set_defaults;
|
||||
p->handle_docroot = mod_mysql_vhost_handle_docroot;
|
||||
|
|
Loading…
Reference in New Issue