diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-03 18:07:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-03 18:07:45 +0100 |
commit | 51f279ca689ea79a873d1f80b000fd3f163b3087 (patch) | |
tree | f7ee061992c21c27ad7c82cac84b86391502d425 /src/Daemon/CrashWatcher.cpp | |
parent | a756114f9d29983d9505309efb3b6f0ed09f946f (diff) | |
download | abrt-51f279ca689ea79a873d1f80b000fd3f163b3087.tar.gz abrt-51f279ca689ea79a873d1f80b000fd3f163b3087.tar.xz abrt-51f279ca689ea79a873d1f80b000fd3f163b3087.zip |
rename CreateReport -> StartJob, GetJobResult -> CreateReport
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r-- | src/Daemon/CrashWatcher.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index d9c3cb11..7f19ea32 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -99,16 +99,14 @@ vector_crash_infos_t GetCrashInfos(const char *pUID) } /* - * "GetJobResult" is a bit of a misnomer. - * It actually _creates_ a_ report_ and returns the result. - * It is called in two cases: - * (1) by CreateReport dbus call -> CreateReportThread(), in the thread - * (2) by GetJobResult dbus call + * Called in two cases: + * (1) by StartJob dbus call -> CreateReportThread(), in the thread + * (2) by CreateReport dbus call * In the second case, it finishes quickly, because previous - * CreateReport dbus call already did all the processing, and we just retrieve + * StartJob dbus call already did all the processing, and we just retrieve * the result from dump directory, which is fast. */ -map_crash_report_t GetJobResult(const char* pUUID, const char* pUID, int force) +map_crash_report_t CreateReport(const char* pUUID, const char* pUID, int force) { map_crash_info_t crashReport; @@ -155,9 +153,8 @@ static void* create_report(void* arg) try { - /* "GetJobResult" is a bit of a misnomer */ log("Creating report..."); - map_crash_info_t crashReport = GetJobResult(thread_data->UUID, thread_data->UID, thread_data->force); + map_crash_info_t crashReport = CreateReport(thread_data->UUID, thread_data->UID, thread_data->force); g_pCommLayer->JobDone(thread_data->peer, thread_data->UUID); } catch (CABRTException& e) |