[tracker/IorR-null-support: 5/12] libtracker-data: Add some code comments for clarification
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/IorR-null-support: 5/12] libtracker-data: Add some code comments for clarification
- Date: Mon, 15 Aug 2011 14:09:28 +0000 (UTC)
commit c8bfd5a114bc057248bd65febeb4bdb55bc1ff8b
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Aug 9 16:07:08 2011 +0200
libtracker-data: Add some code comments for clarification
src/libtracker-data/tracker-data-update.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index ad58b4c..20836a8 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2299,6 +2299,7 @@ delete_all_objects (const gchar *graph,
object_id = (gint) g_value_get_int64 (g_value_array_get_nth (old_values, 0));
tried = TRUE;
+ /* This influences old_values, which is a reference, not a copy */
change = delete_metadata_decomposed (field, NULL, object_id, error);
#ifndef DISABLE_JOURNAL
@@ -2316,6 +2317,7 @@ delete_all_objects (const gchar *graph,
object_id = 0;
tried = TRUE;
+ /* This influences old_values, which is a reference, not a copy */
change = delete_metadata_decomposed (field, object, 0, error);
#ifndef DISABLE_JOURNAL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]