[tracker/miner-web-review] libtracker-data: Drop another do_callback parameter
- From: Adrien Bustany <abustany src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-web-review] libtracker-data: Drop another do_callback parameter
- Date: Thu, 18 Mar 2010 00:40:30 +0000 (UTC)
commit 52f817923a58c7cab628c3eeb62c705d4c6bc381
Author: Jürg Billeter <j bitron ch>
Date: Mon Mar 15 16:27:53 2010 +0100
libtracker-data: Drop another do_callback parameter
src/libtracker-data/tracker-data-update.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 1ae3707..4c15777 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -840,8 +840,7 @@ tracker_data_blank_buffer_flush (GError **error)
static void
cache_create_service_decomposed (TrackerClass *cl,
const gchar *graph,
- gint graph_id,
- gboolean do_callback)
+ gint graph_id)
{
TrackerClass **super_classes;
GValue gvalue = { 0 };
@@ -850,7 +849,7 @@ cache_create_service_decomposed (TrackerClass *cl,
/* also create instance of all super classes */
super_classes = tracker_class_get_super_classes (cl);
while (*super_classes) {
- cache_create_service_decomposed (*super_classes, graph, graph_id, do_callback);
+ cache_create_service_decomposed (*super_classes, graph, graph_id);
super_classes++;
}
@@ -873,7 +872,7 @@ cache_create_service_decomposed (TrackerClass *cl,
TRUE, FALSE, FALSE);
add_class_count (cl, 1);
- if (do_callback && insert_callbacks) {
+ if (!in_journal_replay && insert_callbacks) {
guint n;
const gchar *class_uri;
@@ -1690,7 +1689,7 @@ tracker_data_insert_statement_with_uri (const gchar *graph,
cope with inference and insert blank rows */
class = tracker_ontologies_get_class_by_uri (object);
if (class != NULL) {
- cache_create_service_decomposed (class, graph, 0, TRUE);
+ cache_create_service_decomposed (class, graph, 0);
} else {
g_set_error (error, TRACKER_DATA_ERROR, TRACKER_DATA_ERROR_UNKNOWN_CLASS,
"Class '%s' not found in the ontology", object);
@@ -2508,7 +2507,7 @@ tracker_data_replay_journal (GHashTable *classes,
resource_buffer_switch (NULL, graph_id, NULL, subject_id);
if (property == rdf_type) {
- cache_create_service_decomposed (class, NULL, graph_id, FALSE);
+ cache_create_service_decomposed (class, NULL, graph_id);
} else {
GError *new_error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]