[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 14:58:52 +0000 (UTC)
commit 43adc54993733e6646bd88d33906fff39eaebbf1
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]