[tracker/nb242979: 2/2] libtracker-data: Do not error out when deleting non-existing statement
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/nb242979: 2/2] libtracker-data: Do not error out when deleting non-existing statement
- Date: Mon, 22 Aug 2011 15:14:37 +0000 (UTC)
commit ad9e3ec5dd368a87506d10664f57d008e56be4bc
Author: JÃrg Billeter <j bitron ch>
Date: Mon Aug 22 16:48:21 2011 +0200
libtracker-data: Do not error out when deleting non-existing statement
There is no need to report an error for domain mismatch on delete.
This fixes DELETE { <foo:bar> ?p ?v } WHERE { <foo:bar> ?p ?v}
src/libtracker-data/tracker-data-update.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 1375c9e..79a542d 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1753,7 +1753,8 @@ delete_metadata_decomposed (TrackerProperty *property,
/* read existing property values */
old_values = get_old_property_values (property, &new_error);
if (new_error) {
- g_propagate_error (error, new_error);
+ /* no need to error out if statement does not exist for any reason */
+ g_clear_error (&new_error);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]