[tracker/urho-sync] Comment with a warning about the journal in a rare case



commit fab94fb68cc9b044ac84641ab4f80fba387233fd
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Aug 4 14:11:21 2009 +0200

    Comment with a warning about the journal in a rare case

 src/tracker-store/tracker-store.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-store.c b/src/tracker-store/tracker-store.c
index d0a30de..6ef5760 100644
--- a/src/tracker-store/tracker-store.c
+++ b/src/tracker-store/tracker-store.c
@@ -336,6 +336,13 @@ tracker_store_init (void)
 	journal = fopen (filename, "a");
 
 	if (lines) {
+
+		/* This way there's a small chance of a sparql_update taking
+		 * place that'll see its journal-log truncated without a 
+		 * backup yet having been made (in on_committed), so perhaps
+		 * we should instead use the synchronous tracker_store_sparql_update
+		 * here. It'll make startup of tracker-store slower, though. */
+
 		tracker_store_queue_sparql_update (lines,
 		                                   immediate_commit, 
 		                                   NULL, NULL);



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