* mu-cmd-index.c: clear the stats before cleanup only when run as a separate

command
This commit is contained in:
Dirk-Jan C. Binnema
2010-02-13 14:08:45 +02:00
parent 41dbb68e6b
commit 2846a40025

View File

@ -155,7 +155,6 @@ database_version_check_and_update (MuConfigOptions *opts)
static MuResult
run_cleanup (MuIndex *midx, MuIndexStats *stats, gboolean quiet)
{
mu_index_stats_clear (stats);
return mu_index_cleanup (midx, stats,
quiet ? index_msg_silent_cb : index_msg_cb,
NULL);
@ -184,6 +183,7 @@ mu_cmd_cleanup (MuConfigOptions *opts)
g_message ("Cleaning up removed messages from %s",
opts->xpath);
mu_index_stats_clear (&stats);
rv = run_cleanup (midx, &stats, opts->quiet);
mu_index_destroy (midx);