[tracker/tracker-1.0] libtracker-miner: Pass flags explicitly when creating crawling root data
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.0] libtracker-miner: Pass flags explicitly when creating crawling root data
- Date: Fri, 9 May 2014 08:48:44 +0000 (UTC)
commit 3162885624098973d0a8c98688aa2cc5853a1996
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 9 00:46:51 2014 +0200
libtracker-miner: Pass flags explicitly when creating crawling root data
Those might differ from the flags reported by the TrackerIndexingTree,
specially during ::directory-removed.
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 3171921..c734af3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]