tracker r2886 - in trunk: . src/libtracker-db



Author: carlosg
Date: Fri Feb  6 11:00:31 2009
New Revision: 2886
URL: http://svn.gnome.org/viewvc/tracker?rev=2886&view=rev

Log:
2009-02-06  Carlos Garnacho  <carlos imendio com>

        * src/libtracker-db/tracker-db-index.c (indexer_update_word): Fixed
        yet another glitch in the binary search... the right pivot was being
        set past the last element in the array.

Modified:
   trunk/ChangeLog
   trunk/src/libtracker-db/tracker-db-index.c

Modified: trunk/src/libtracker-db/tracker-db-index.c
==============================================================================
--- trunk/src/libtracker-db/tracker-db-index.c	(original)
+++ trunk/src/libtracker-db/tracker-db-index.c	Fri Feb  6 11:00:31 2009
@@ -598,7 +598,7 @@
 		edited = FALSE;
 
 		left = 0;
-		right = old_hit_count;
+		right = old_hit_count - 1;
 		center = (right - left) / 2;
 
 		/* New items are going to have always a higher service ID,



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