[tracker/miner-web-review] libtracker-data: Keep VmRSS under control during journal replay
- From: Adrien Bustany <abustany src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/miner-web-review] libtracker-data: Keep VmRSS under control during journal replay
- Date: Thu, 18 Mar 2010 00:41:20 +0000 (UTC)
commit 508404d6eca20fbb78943d6c53b348024ec2c6b9
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Mar 17 13:09:57 2010 +0100
libtracker-data: Keep VmRSS under control during journal replay
src/libtracker-data/tracker-data-update.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 9bdffd4..1be3f34 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2457,6 +2457,13 @@ tracker_data_replay_journal (GHashTable *classes,
} else if (type == TRACKER_DB_JOURNAL_START_TRANSACTION) {
resource_time = tracker_db_journal_reader_get_time ();
+ } else if (type == TRACKER_DB_JOURNAL_END_TRANSACTION) {
+ GError *new_error = NULL;
+ tracker_data_update_buffer_might_flush (&new_error);
+ if (new_error) {
+ g_warning ("Journal replay error: '%s'", new_error->message);
+ g_clear_error (&new_error);
+ }
} else if (type == TRACKER_DB_JOURNAL_INSERT_STATEMENT) {
GError *new_error = NULL;
TrackerProperty *property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]