From 041bb1911b379ee43b4397f137387a13c3a466cb Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Thu, 18 Apr 2019 12:53:58 +0200 Subject: [PATCH] Fix create_report cache update at end of results The last cache rebuild was run before the last insert, so the results from this were not counted. --- src/manage_sql.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/manage_sql.c b/src/manage_sql.c index 0867cf89d..ee30903e7 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -22531,12 +22531,10 @@ create_report (array_t *results, const char *task_id, const char *task_name, g_free (quoted_qod_type); } - report_cache_counts (report, 1, 1, NULL); - if (first == 0) { sql (insert->str); - report_cache_counts (report, 0, 0, NULL); + report_cache_counts (report, 1, 1, NULL); sql_commit (); gvm_usleep (CREATE_REPORT_CHUNK_SLEEP); sql_begin_immediate ();