[tracker] libtracker-data: Added some comments clarifying the code
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Added some comments clarifying the code
- Date: Wed, 10 Nov 2010 13:15:19 +0000 (UTC)
commit 6e2f7069e99c7767cb7c8587fb92b3988c79a3a1
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Nov 10 14:14:54 2010 +0100
libtracker-data: Added some comments clarifying the code
src/libtracker-data/tracker-data-manager.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index b8ec57c..3946427 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -681,7 +681,9 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
}
/* This doesn't detect removed rdfs:subClassOf situations, it
- * only checks whether no new ones are being added */
+ * only checks whether no new ones are being added. For
+ * detecting the removal of a rdfs:subClassOf, please check the
+ * tracker_data_ontology_process_changes_pre_db stuff */
if (found == FALSE) {
handle_unsupported_ontology_change (ontology_path,
@@ -786,6 +788,11 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
}
}
+ /* This doesn't detect removed tracker:domainIndex situations, it
+ * only checks whether no new ones are being added. For
+ * detecting the removal of a tracker:domainIndex, please check the
+ * tracker_data_ontology_process_changes_pre_db stuff */
+
if (!ignore) {
if (!had) {
tracker_property_set_is_new_domain_index (property, class, in_update);
@@ -933,6 +940,11 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
return;
}
+ /* This doesn't detect removed nrl:maxCardinality situations, it
+ * only checks whether the existing one got changed. For
+ * detecting the removal of a nrl:maxCardinality, please check the
+ * tracker_data_ontology_process_changes_pre_db stuff */
+
is_new = tracker_property_get_is_new (property);
if (is_new != in_update) {
/* Detect unsupported ontology change (this needs a journal replay) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]