[tracker/journal] 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] libtracker-data: Make sure we journal superproperty changes
- Date: Tue, 16 Mar 2010 15:09:41 +0000 (UTC)
commit 9b7e9901a4a41ca7dea6939432dd3df704280359
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]