[tracker/journal: 14/21] libtracker-data: Drop another do_callback parameter
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal: 14/21] libtracker-data: Drop another do_callback parameter
- Date: Tue, 16 Mar 2010 15:31:23 +0000 (UTC)
commit b0ce569e5c1a2c54ed44034dd46f9f533488fe3f
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 6979160..c51b51b 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -861,8 +861,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 };
@@ -871,7 +870,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++;
}
@@ -894,7 +893,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;
@@ -1751,7 +1750,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);
@@ -2575,7 +2574,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]