[tracker/journal: 21/21] libtracker-data: Make sure we journal superproperty changes



commit 6428cb06369f7af949ec6a6f43a0adab60183b4b
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 16 16:05:45 2010 +0100

    libtracker-data: Make sure we journal superproperty changes
    
    If the insert or delete statement only affects a superproperty, we used
    to discard the journal entry.

 src/libtracker-data/tracker-data-update.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 0fb1111..092559f 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1164,7 +1164,7 @@ cache_set_metadata_decomposed (TrackerProperty  *property,
 	/* also insert super property values */
 	super_properties = tracker_property_get_super_properties (property);
 	while (*super_properties) {
-		cache_set_metadata_decomposed (*super_properties, value, value_id,
+		change |= cache_set_metadata_decomposed (*super_properties, value, value_id,
 		                               graph, graph_id, &new_error);
 		if (new_error) {
 			g_propagate_error (error, new_error);
@@ -1273,7 +1273,7 @@ delete_metadata_decomposed (TrackerProperty  *property,
 	/* also delete super property values */
 	super_properties = tracker_property_get_super_properties (property);
 	while (*super_properties) {
-		delete_metadata_decomposed (*super_properties, value, value_id, error);
+		change |= delete_metadata_decomposed (*super_properties, value, value_id, error);
 		super_properties++;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]