[tracker/journal: 21/21] libtracker-data: Make sure we journal superproperty changes
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal: 21/21] libtracker-data: Make sure we journal superproperty changes
- Date: Tue, 16 Mar 2010 15:31:58 +0000 (UTC)
commit f34357119fa31a123daab49bbf458687cf60ba8e
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 5f88dca..0a8f447 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1193,7 +1193,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);
@@ -1322,7 +1322,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]