[tracker/tracker-0.10] libtracker-data: Do not error out when deleting non-existing statement
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-data: Do not error out when deleting non-existing statement
- Date: Thu, 25 Aug 2011 15:54:56 +0000 (UTC)
commit c315354651e923af49967ccf86d6f43ff1d413d9
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]