[tracker/tracker-0.8] tracker-store: Bugfix for NB#166684, commit each chunk



commit 3b332ac6ffd7b082159024e3ec400d192e6b9b52
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon May 3 11:53:59 2010 +0200

    tracker-store: Bugfix for NB#166684, commit each chunk

 src/tracker-store/tracker-store.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-store.c b/src/tracker-store/tracker-store.c
index 7c9a9d6..36780e4 100644
--- a/src/tracker-store/tracker-store.c
+++ b/src/tracker-store/tracker-store.c
@@ -136,6 +136,12 @@ process_turtle_file_part (TrackerTurtleReader *reader, GError **error)
 
 		i++;
 		if (!new_error && i >= 10) {
+			tracker_data_commit_transaction (&new_error);
+			if (new_error) {
+				tracker_data_rollback_transaction ();
+				g_propagate_error (error, new_error);
+				return FALSE;
+			}
 			/* return to main loop */
 			return TRUE;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]