diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-05-09 00:46:51 +0200 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2014-05-09 09:18:29 +0100 |
commit | 3162885624098973d0a8c98688aa2cc5853a1996 (patch) | |
tree | 2213e6c08751b381a66474d57c3c1b0791ddc79e | |
parent | 7dc43668596bfa411874df09ac11c8169164078d (diff) | |
download | tracker-3162885624098973d0a8c98688aa2cc5853a1996.tar.gz |
libtracker-miner: Pass flags explicitly when creating crawling root data
Those might differ from the flags reported by the TrackerIndexingTree,
specially during ::directory-removed.
-rw-r--r-- | 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 3171921f0..c734af377 100644 --- a/src/libtracker-miner/tracker-file-notifier.c +++ b/src/libtracker-miner/tracker-file-notifier.c @@ -142,9 +142,9 @@ tracker_file_notifier_get_property (GObject *object, static RootData * root_data_new (TrackerFileNotifier *notifier, - GFile *file) + GFile *file, + guint flags) { - TrackerFileNotifierPrivate *priv = notifier->priv; RootData *data; data = g_new0 (RootData, 1); @@ -152,9 +152,9 @@ root_data_new (TrackerFileNotifier *notifier, data->pending_dirs = g_queue_new (); data->query_files = g_ptr_array_new (); data->updated_dirs = g_ptr_array_new (); + data->flags = flags; g_queue_push_tail (data->pending_dirs, g_object_ref (file)); - tracker_indexing_tree_get_root (priv->indexing_tree, file, &data->flags); return data; } @@ -856,7 +856,7 @@ notifier_queue_file (TrackerFileNotifier *notifier, TrackerDirectoryFlags flags) { TrackerFileNotifierPrivate *priv = notifier->priv; - RootData *data = root_data_new (notifier, file); + RootData *data = root_data_new (notifier, file, flags); if (flags & TRACKER_DIRECTORY_FLAG_PRIORITY) { priv->pending_index_roots = g_list_prepend (priv->pending_index_roots, data); |