[tracker] libtracker-miner: Pass flags explicitly when creating crawling root data
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Pass flags explicitly when creating crawling root data
- Date: Thu, 8 May 2014 23:04:05 +0000 (UTC)
commit e8e29bfabfca7d12df644ede4ceedb50354cea01
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 ace6864..71f47df 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]