[tracker] Revert "TrackerDecorator: Remove unused argument in element_remove_link()"
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Revert "TrackerDecorator: Remove unused argument in element_remove_link()"
- Date: Fri, 7 Feb 2014 21:55:21 +0000 (UTC)
commit 6ed75c43fb22d0ba024e7bc3b981899a120f3617
Author: Xavier Claessens <xavier claessens collabora co uk>
Date: Fri Feb 7 16:53:52 2014 -0500
Revert "TrackerDecorator: Remove unused argument in element_remove_link()"
This reverts commit f804134f2ec499e919fcfb714e2c6ae702e1939e.
src/libtracker-miner/tracker-decorator.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index b3bf011..0f0c92e 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -226,7 +226,8 @@ static void decorator_commit_info (TrackerDecorator *decorator);
static void
element_remove_link (TrackerDecorator *decorator,
- GList *elem_link)
+ GList *elem_link,
+ gboolean emit)
{
TrackerDecoratorPrivate *priv;
ElemNode *node;
@@ -245,7 +246,7 @@ element_remove_link (TrackerDecorator *decorator,
g_queue_delete_link (priv->elem_queue, elem_link);
g_hash_table_remove (priv->elems, GINT_TO_POINTER (node->id));
- if (g_hash_table_size (priv->elems) == 0) {
+ if (emit && g_hash_table_size (priv->elems) == 0) {
/* Flush any remaining Sparql updates */
decorator_commit_info (decorator);
@@ -273,7 +274,7 @@ element_remove_by_id (TrackerDecorator *decorator,
if (!elem_link)
return;
- element_remove_link (decorator, elem_link);
+ element_remove_link (decorator, elem_link, TRUE);
}
static void
@@ -1070,7 +1071,7 @@ query_next_items_cb (GObject *object,
node = elem->data;
if (!node->info)
- element_remove_link (decorator, elem);
+ element_remove_link (decorator, elem, TRUE);
}
complete_tasks_or_query (decorator);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]