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/MiddleWare.cpp | |
| 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/MiddleWare.cpp')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp index 5136929..d2d12a0 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); } } |
