[tracker] tracker-store: Bugfix for NB#166684, commit each chunk
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-store: Bugfix for NB#166684, commit each chunk
- Date: Mon, 3 May 2010 09:55:34 +0000 (UTC)
commit 77453baac26694c7ede9da0ec9fc8aec835a850e
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 7dda0b4..bb55c55 100644
--- a/src/tracker-store/tracker-store.c
+++ b/src/tracker-store/tracker-store.c
@@ -174,6 +174,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]