[tracker/journal: 20/22] libtracker-data: Make sure we journal superproperty changes
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal: 20/22] libtracker-data: Make sure we journal superproperty changes
- Date: Wed, 17 Mar 2010 15:16:32 +0000 (UTC)
commit d34b2895802931d276d9706b1a7a55522b5a6192
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 c119a3f..0893e42 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1163,7 +1163,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);
@@ -1272,7 +1272,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]