diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-10 14:32:08 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-10 14:32:08 +0200 |
commit | 8e86ee207e5ce77189d287597adbda86c781a514 (patch) | |
tree | db36026f6a112a0259f2d23409efa73f39cda547 /lib/MiddleWare | |
parent | 034314a72ed3d461bc622b4b9870b486a11df4bb (diff) | |
download | abrt-8e86ee207e5ce77189d287597adbda86c781a514.tar.gz abrt-8e86ee207e5ce77189d287597adbda86c781a514.tar.xz abrt-8e86ee207e5ce77189d287597adbda86c781a514.zip |
Configurable max size of debugdump storage rhbz#490889
Diffstat (limited to 'lib/MiddleWare')
-rw-r--r-- | lib/MiddleWare/MiddleWare.cpp | 13 | ||||
-rw-r--r-- | lib/MiddleWare/MiddleWare.h | 2 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp index 51369295..d2d12a0d 100644 --- a/lib/MiddleWare/MiddleWare.cpp +++ b/lib/MiddleWare/MiddleWare.cpp @@ -203,6 +203,14 @@ void CMiddleWare::Report(const map_crash_report_t& pCrashReport) database->DisConnect(); } +void CMiddleWare::DeleteDebugDumpDir(const std::string& pDebugDumpDir) +{ + CDebugDump dd; + dd.Open(pDebugDumpDir); + dd.Delete(); + dd.Close(); +} + void CMiddleWare::DeleteCrashInfo(const std::string& pUUID, const std::string& pUID, const bool bWithDebugDump) @@ -216,10 +224,7 @@ void CMiddleWare::DeleteCrashInfo(const std::string& pUUID, if (bWithDebugDump) { - CDebugDump dd; - dd.Open(row.m_sDebugDumpDir); - dd.Delete(); - dd.Close(); + DeleteDebugDumpDir(row.m_sDebugDumpDir); } } diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h index e8d52129..86db7084 100644 --- a/lib/MiddleWare/MiddleWare.h +++ b/lib/MiddleWare/MiddleWare.h @@ -80,7 +80,7 @@ class CMiddleWare map_crash_report_t& pCrashReport); void Report(const map_crash_report_t& pCrashReport); - + void DeleteDebugDumpDir(const std::string& pDebugDumpDir); void DeleteCrashInfo(const std::string& pUUID, const std::string& pUID, const bool bWithDebugDump = true); |