[tracker/journal: 12/21] libtracker-data: Consolidate rdf:type lookup in journal replay
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal: 12/21] libtracker-data: Consolidate rdf:type lookup in journal replay
- Date: Tue, 16 Mar 2010 16:29:40 +0000 (UTC)
commit 42400f58c3d8f03b7844fa7e3aa8a32d95b48b41
Author: Jürg Billeter <j bitron ch>
Date: Mon Mar 15 16:17:57 2010 +0100
libtracker-data: Consolidate rdf:type lookup in journal replay
src/libtracker-data/tracker-data-update.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 253bf6d..7ca8988 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2458,6 +2458,10 @@ tracker_data_replay_journal (GHashTable *classes,
GError *journal_error = NULL;
static TrackerProperty *rdf_type = NULL;
+ if (!rdf_type) {
+ rdf_type = tracker_ontologies_get_property_by_uri (RDF_PREFIX "type");
+ }
+
tracker_db_journal_reader_init (NULL);
while (tracker_db_journal_reader_next (&journal_error)) {
@@ -2534,10 +2538,6 @@ tracker_data_replay_journal (GHashTable *classes,
} else {
resource_buffer_switch (NULL, graph_id, NULL, subject_id);
- if (!rdf_type) {
- rdf_type = tracker_ontologies_get_property_by_uri (RDF_PREFIX "type");
- }
-
if (property == rdf_type) {
cache_create_service_decomposed (class, NULL, graph_id, FALSE);
} else {
@@ -2572,10 +2572,6 @@ tracker_data_replay_journal (GHashTable *classes,
if (property) {
GError *new_error = NULL;
- if (!rdf_type) {
- rdf_type = tracker_ontologies_get_property_by_uri (RDF_PREFIX "type");
- }
-
if (object && rdf_type == property) {
TrackerClass *class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]