summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-08-01 02:47:29 +0000
committerdane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-08-01 02:47:29 +0000
commit3422f4a798f9fdd3b0c1efaeffdbdb8a7e495fdb (patch)
tree11159138cfd8b6b74dd29751e4c1d5b426ba1353 /src/main.c
parenta090c812cf88617ad825485791f7f38764db6ae8 (diff)
BUILD : 1.7.4 (295) BUGS : none NOTES : Rolling back previous commit.
git-svn-id: svn://svn.anope.org/anope/trunk@295 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@184 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3af7dc73c..cb9c3a009 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,6 +48,7 @@ int is44 = 0; /* -is44 */
#endif
#ifdef USE_RDB
+int do_mysql = 0; /* use mysql ? */
#endif
/* Set to 1 if we are to quit */
@@ -153,6 +154,40 @@ void save_databases(void)
save_news();
waiting = -18;
save_exceptions();
+
+#ifdef USE_RDB
+ if (do_mysql) {
+ if (debug)
+ alog("debug: Saving RDB databases");
+ waiting = -10;
+ if (!skeleton) {
+ waiting = -11;
+ save_ns_rdb_dbase();
+ waiting = -12;
+ save_cs_rdb_dbase();
+ if (PreNickDBName) {
+ save_ns_req_rdb_dbase();
+ waiting = -13;
+ }
+ /* Temporary fix to avoid unwanted timeouts... */
+ send_cmd(ServerName, "PONG %s", ServerName);
+ if (s_BotServ) {
+ waiting = -14;
+ save_bs_rdb_dbase();
+ }
+ if (s_HostServ) {
+ waiting = -15;
+ save_hs_rdb_dbase();
+ }
+ waiting = -16;
+ save_os_rdb_dbase();
+ waiting = -17;
+ save_rdb_news();
+ waiting = -18;
+ save_rdb_exceptions();
+ }
+ }
+#endif
}
/*************************************************************************/
@@ -197,7 +232,6 @@ void do_restart_services(void)
static void services_shutdown(void)
{
- rdb_end();
if (!quitmsg)
quitmsg = "Terminating, reason unknown";
alog("%s", quitmsg);