tracker r2135 - in branches/indexer-split: . src/tracker-indexer



Author: pvanhoof
Date: Thu Aug 21 14:36:40 2008
New Revision: 2135
URL: http://svn.gnome.org/viewvc/tracker?rev=2135&view=rev

Log:
2008-08-21  Philip Van Hoof  <philip codeminded be>

        * src/libtracker-db/tracker-db-index.c: Regression fix on "There's
        no need to flush the word index on pausing the indexer.": the current
        transaction was not always being committed anymore



Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/tracker-indexer/tracker-indexer.c

Modified: branches/indexer-split/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/tracker-indexer.c	(original)
+++ branches/indexer-split/src/tracker-indexer/tracker-indexer.c	Thu Aug 21 14:36:40 2008
@@ -1791,8 +1791,12 @@
 	}
 
 	if (!running) {
-		 if (flush)
-			 schedule_flush (indexer, TRUE);
+
+		if (flush)
+			schedule_flush (indexer, TRUE);
+		else
+			stop_transaction (indexer);
+
 		check_disk_space_stop (indexer);
 		signal_status_timeout_stop (indexer);
 



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