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



commit ba0f81035d9343d260ab06d7bb3db36b1561209a
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 7d81473..9c308e1 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2456,6 +2456,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]