[tracker] libtracker-data: Flush update buffer before deleting statements
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Flush update buffer before deleting statements
- Date: Thu, 10 Sep 2009 10:29:45 +0000 (UTC)
commit b7bf9ab006ceced2304df482bbccf2361095bf71
Author: Jürg Billeter <j bitron ch>
Date: Thu Sep 10 12:20:46 2009 +0200
libtracker-data: Flush update buffer before deleting statements
src/libtracker-data/tracker-data-update.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 4407fea..46f810e 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -947,6 +947,11 @@ tracker_data_delete_statement (const gchar *subject,
return;
}
+ if (update_buffer.subject != NULL) {
+ /* delete does not use update buffer, flush it */
+ tracker_data_update_buffer_flush ();
+ }
+
types = tracker_data_query_rdf_type (subject_id);
/* TODO we need to retrieve all existing (FTS indexed) property values for
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]