From 01906d0b74d7952014e3a43d62df352ca187001a Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 3 Apr 2010 20:25:57 +0000 Subject: [PATCH] Don't save databases when rehashed or shutdown from anoperc when in readonly mode git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2855 5417fbe8-f217-4b02-8779-1006273d7864 --- src/main.c | 2 ++ version.log | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 2fa3a8f21..55a979b3e 100644 --- a/src/main.c +++ b/src/main.c @@ -145,6 +145,8 @@ extern void expire_all(void) void save_databases(void) { + if (readonly) + return; waiting = -19; send_event(EVENT_DB_SAVING, 1, EVENT_START); waiting = -2; diff --git a/version.log b/version.log index ca17cfa5b..cfdf9dc30 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,11 @@ VERSION_MAJOR="1" VERSION_MINOR="8" VERSION_PATCH="3" VERSION_EXTRA="-svn" -VERSION_BUILD="2853" +VERSION_BUILD="2855" # $Log$ # Changes since 1.8.3 Release +#Revision 2855 - Don't save databases when rehashed or shutdown from anoperc when in readonly mode #Revision 2843 - Fixed catserv module demo to work correctly on TS6 IRCds #Revision 2842 - Fixed bug #1149 - Number memos in MySQL correctly #Revision 2841 - Fixed bugs #1146 and #1147 - Fixed check_modes to only apply defcon settings when defcon is actually on