diff options
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r-- | mod_log_sql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c index dace2d4..7aaa595 100644 --- a/mod_log_sql.c +++ b/mod_log_sql.c | |||
@@ -154,7 +154,7 @@ static logsql_opendb_ret log_sql_opendb_link(server_rec* s) | |||
154 | { | 154 | { |
155 | logsql_opendb_ret result; | 155 | logsql_opendb_ret result; |
156 | if (global_config.forcepreserve) { | 156 | if (global_config.forcepreserve) { |
157 | global_config.db.connected = 1; | 157 | //global_config.db.connected = 1; |
158 | return LOGSQL_OPENDB_PRESERVE; | 158 | return LOGSQL_OPENDB_PRESERVE; |
159 | } | 159 | } |
160 | if (global_config.db.connected) { | 160 | if (global_config.db.connected) { |
@@ -1054,10 +1054,10 @@ static int log_sql_transaction(request_rec *orig) | |||
1054 | 1054 | ||
1055 | /* How's our mysql link integrity? */ | 1055 | /* How's our mysql link integrity? */ |
1056 | if (!global_config.db.connected) { | 1056 | if (!global_config.db.connected) { |
1057 | 1057 | if (!global_config.forcepreserve) { | |
1058 | /* Make a try to establish the link */ | 1058 | /* Make a try to establish the link */ |
1059 | log_sql_opendb_link(r->server); | 1059 | log_sql_opendb_link(r->server); |
1060 | 1060 | } | |
1061 | if (!global_config.db.connected) { | 1061 | if (!global_config.db.connected) { |
1062 | /* Unable to re-establish a DB link, so assume that it's really | 1062 | /* Unable to re-establish a DB link, so assume that it's really |
1063 | * gone and send the entry to the preserve file instead. | 1063 | * gone and send the entry to the preserve file instead. |