[tracker/miner-fs-refactor: 122/127] libtracker-miner: issue critical warning on unlikely case
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-fs-refactor: 122/127] libtracker-miner: issue critical warning on unlikely case
- Date: Mon, 5 Dec 2011 13:29:51 +0000 (UTC)
commit 4e663f50adfbd1a49a9a966951704b129aebe884
Author: Carlos Garnacho <carlos lanedo com>
Date: Mon Nov 28 15:22:27 2011 +0100
libtracker-miner: issue critical warning on unlikely case
This shouldn't ever happen, but issue a warning in case some
bug slips in.
src/libtracker-miner/tracker-file-notifier.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 2093f0e..996eacf 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -240,6 +240,14 @@ file_notifier_traverse_tree_foreach (GFile *file,
* to crawl (i.e. embedded root directories, that would
* be processed when that root is being crawled).
*/
+ if (!tracker_indexing_tree_file_is_root (priv->indexing_tree, file)) {
+ gchar *uri;
+
+ uri = g_file_get_uri (file);
+ g_critical ("File '%s' has no disk nor store mtime",
+ uri);
+ g_free (uri);
+ }
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]