[tracker/playlist: 2/2] libtracker-data: Make sure update buffer does not grow without limits
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/playlist: 2/2] libtracker-data: Make sure update buffer does not grow without limits
- Date: Thu, 10 Jun 2010 13:08:44 +0000 (UTC)
commit c8d38025a38de319db57b8d20d08246f13a9f039
Author: Jürg Billeter <j bitron ch>
Date: Thu Jun 10 15:06:52 2010 +0200
libtracker-data: Make sure update buffer does not grow without limits
Large INSERTs with thousands of resources could lead to high peak
memory usage without this.
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 0ae6391..dc96c39 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1625,6 +1625,8 @@ resource_buffer_switch (const gchar *graph,
GValue gvalue = { 0 };
gchar *subject_dup = NULL;
+ tracker_data_update_buffer_might_flush (NULL);
+
/* subject not yet in cache, retrieve or create ID */
resource_buffer = g_slice_new0 (TrackerDataUpdateBufferResource);
if (subject != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]