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



commit f8031eec33336e8222c1c64c9a19c36da0652b4b
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 0f357a7..a684230 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1185,7 +1185,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);
@@ -1294,7 +1294,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]