[tracker] libtracker-miner: fix thinko in TrackerFileNotifier



commit 8d39d2c7bad971c31d04865145358ab561c2e08a
Author: Carlos Garnacho <carlos lanedo com>
Date:   Fri Dec 16 12:56:36 2011 +0100

    libtracker-miner: fix thinko in TrackerFileNotifier
    
    "canonical" was supposed to be the root dir as configured in
    the indexing tree, so the if below forces mtime checks on
    directories that do come from TrackerMonitor signals. so rename
    it to something sensible and actually initialize it.

 src/libtracker-miner/tracker-file-notifier.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 50a8e18..6167d1d 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -259,18 +259,18 @@ static void
 file_notifier_traverse_tree (TrackerFileNotifier *notifier)
 {
 	TrackerFileNotifierPrivate *priv;
-	GFile *current_root, *canonical;
+	GFile *current_root, *config_root;
 	TrackerDirectoryFlags flags;
 
 	priv = notifier->priv;
 	current_root = priv->pending_index_roots->data;
-	tracker_indexing_tree_get_root (priv->indexing_tree,
-	                                current_root, &flags);
+	config_root = tracker_indexing_tree_get_root (priv->indexing_tree,
+						      current_root, &flags);
 
 	/* Check mtime for 1) directories with the check_mtime flag
 	 * and 2) directories gotten from monitor events.
 	 */
-	if (canonical != current_root ||
+	if (config_root != current_root ||
 	    flags & TRACKER_DIRECTORY_FLAG_CHECK_MTIME) {
 		tracker_file_system_traverse (priv->file_system,
 		                              current_root,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]