[tracker] Bug 621547 - inconsistent messages on hard-reset
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Bug 621547 - inconsistent messages on hard-reset
- Date: Wed, 23 Jun 2010 11:16:58 +0000 (UTC)
commit 26c6b3ba36c2518a34c5d2f22475003c398c6528
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jun 21 17:24:27 2010 +0200
Bug 621547 - inconsistent messages on hard-reset
Now all file removal messages have the same format.
src/libtracker-db/tracker-db-manager.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index 964ab36..6bdb777 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -1352,13 +1352,12 @@ tracker_db_manager_set_first_index_done (gboolean done)
}
} else if (!done && already_exists) {
/* If NOT done, remove stamp file */
+ g_message (" Removing first index file:'%s'", filename);
+
if (g_remove (filename)) {
- g_warning (" Could not remove file:'%s', %s",
+ g_warning (" Could not remove file:'%s', %s",
filename,
g_strerror (errno));
- } else {
- g_message (" First index file:'%s' removed",
- filename);
}
}
@@ -1437,13 +1436,12 @@ tracker_db_manager_set_last_crawl_done (gboolean done)
g_free (content);
} else if (!done && already_exists) {
/* If NOT done, remove stamp file */
+ g_message (" Removing last crawl file:'%s'", filename);
+
if (g_remove (filename)) {
- g_warning (" Could not remove file:'%s', %s",
+ g_warning (" Could not remove file:'%s', %s",
filename,
g_strerror (errno));
- } else {
- g_message (" Last crawl file:'%s' removed",
- filename);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]