summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README11
-rw-r--r--mod_log_sql.c4
2 files changed, 12 insertions, 3 deletions
diff --git a/README b/README
index d25bc06..977080f 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
1$Id: README,v 1.3 2001/12/07 03:52:56 helios Exp $ 1$Id: README,v 1.4 2002/04/08 07:06:20 helios Exp $
2 2
3 3
4Homepage 4Homepage
@@ -183,6 +183,15 @@ Notes
183 makes perfect sense anyway. 183 makes perfect sense anyway.
184 184
185 185
186* If your database goes offline and Apache cannot log to it, mod_log_mysql
187 intelligently preserves any queries to a local text file. (By
188 default the file is /tmp/mysql-preserve.) This will allow you to not
189 miss those entries; when you bring your database back online it is a
190 simple matter to import the contents of this preserve file. To do
191 this simply copy the file to your MySQL server and run an import
192 as follows:
193 # mysql -uadminuser -p mydbname < mysql-preserve
194
186 195
187Author / Maintainer 196Author / Maintainer
188------------------- 197-------------------
diff --git a/mod_log_sql.c b/mod_log_sql.c
index 62e9784..16deada 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -1,4 +1,4 @@
1/* $Id: mod_log_sql.c,v 1.7 2002/04/08 06:35:04 helios Exp $ */ 1/* $Id: mod_log_sql.c,v 1.8 2002/04/08 07:06:20 helios Exp $ */
2 2
3 3
4/* DEFINES */ 4/* DEFINES */
@@ -514,7 +514,7 @@ void preserve_entry(request_rec *r, const char *query)
514 if (fp == NULL) 514 if (fp == NULL)
515 ap_log_error(APLOG_MARK,ERRLEVEL,r->server,"MySQL: attempted append of local offline file but failed."); 515 ap_log_error(APLOG_MARK,ERRLEVEL,r->server,"MySQL: attempted append of local offline file but failed.");
516 else 516 else
517 fprintf(fp,"%s\n", query); 517 fprintf(fp,"%s;\n", query);
518 fclose(fp); 518 fclose(fp);
519} 519}
520 520