diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-23 15:51:54 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-11-23 15:51:54 +0100 |
commit | 86fc61db75385d6fb452b4cf88aec1deffa3a5be (patch) | |
tree | 8b88bd46ef8fe05167f72b3d1f0bff034620b9a1 /src/lib/test.cpp | |
parent | d992b91c61b4da10e1f977038d85cd640f8d7ae5 (diff) | |
download | abrt-86fc61db75385d6fb452b4cf88aec1deffa3a5be.tar.gz abrt-86fc61db75385d6fb452b4cf88aec1deffa3a5be.tar.xz abrt-86fc61db75385d6fb452b4cf88aec1deffa3a5be.zip |
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 <dvlasenk@redhat.com>
Diffstat (limited to 'src/lib/test.cpp')
-rw-r--r-- | src/lib/test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/test.cpp b/src/lib/test.cpp index a548dc21..c8269cd1 100644 --- a/src/lib/test.cpp +++ b/src/lib/test.cpp @@ -83,14 +83,14 @@ int main(int argc, char** argv) std::cout << "Application Crashed! " << crashInfo[FILENAME_PACKAGE][CD_CONTENT] << ", " << crashInfo[FILENAME_EXECUTABLE][CD_CONTENT] << ", " << - crashInfo[CD_COUNT][CD_CONTENT] << ", " << std::endl; + crashInfo[FILENAME_COUNT][CD_CONTENT] << ", " << std::endl; /* Get Report, so user can change data (remove private stuff) * If we do not want user interaction, just send data immediately */ map_crash_data_t crashReport; middleWare.CreateCrashReport(crashInfo[FILENAME_DUPHASH][CD_CONTENT], - crashInfo[CD_UID][CD_CONTENT], + crashInfo[FILENAME_UID][CD_CONTENT], crashReport); /* Report crash */ middleWare.Report(crashReport); |