From 86fc61db75385d6fb452b4cf88aec1deffa3a5be Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 23 Nov 2010 15:51:54 +0100 Subject: remove sqlite DB This change removes sqlite database. Database was used to find dump dirs by [UID:]UUID. This patch uses more natural way: dump dirs are addressed by their directory names. DB was also used to produce a list of dump dirs. Now it is done by iterating over the /var/spool/abrt directory. And finally, DB was also used to find duplicate UUIDs. Now it is done by iterating over the /var/spool/abrt directory. Crash count, "inform all" and reporting result message are moved from DB field to a file in dump dir. "Reported" DB field is deleted - if message != "", then this dump was reported. Signed-off-by: Denys Vlasenko --- src/daemon/Settings.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/daemon/Settings.cpp') diff --git a/src/daemon/Settings.cpp b/src/daemon/Settings.cpp index d0c44c20..5b9972ba 100644 --- a/src/daemon/Settings.cpp +++ b/src/daemon/Settings.cpp @@ -50,7 +50,6 @@ bool g_settings_bOpenGPGCheck = false; GList *g_settings_setOpenGPGPublicKeys = NULL; GList *g_settings_setBlackListedPkgs = NULL; GList *g_settings_setBlackListedPaths = NULL; -char *g_settings_sDatabase = NULL; char *g_settings_sWatchCrashdumpArchiveDir = NULL; unsigned int g_settings_nMaxCrashReportsSize = 1000; bool g_settings_bProcessUnpackaged = false; @@ -200,17 +199,6 @@ static int ParseCommon() { g_settings_setBlackListedPaths = parse_list(it->second.c_str()); } - it = s_mapSectionCommon.find("Database"); - if (it != end) - { - if (it->second.empty()) - error_msg_and_die(_("Database plugin not specified. Please check abrtd settings.")); - - g_settings_sDatabase = xstrdup(it->second.c_str()); - } - else - error_msg_and_die(_("Database plugin not specified. Please check abrtd settings.")); - it = s_mapSectionCommon.find("WatchCrashdumpArchiveDir"); if (it != end) { @@ -466,9 +454,6 @@ void settings_free() g_list_free(g_settings_setBlackListedPaths); g_settings_setBlackListedPaths = NULL; - free(g_settings_sDatabase); - g_settings_sDatabase = NULL; - free(g_settings_sWatchCrashdumpArchiveDir); g_settings_sWatchCrashdumpArchiveDir = NULL; } -- cgit