[tracker/journal] libtracker-data: Keep VmRSS under control during journal replay



commit 9a0e1113888892d0eaaeef84dca2db1766bfd525
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]