tracker r2390 - trunk/src/tracker-fts



Author: pvanhoof
Date: Mon Oct 20 08:31:28 2008
New Revision: 2390
URL: http://svn.gnome.org/viewvc/tracker?rev=2390&view=rev

Log:
Leaving a comment for Jamie

Modified:
   trunk/src/tracker-fts/tracker-fts.c

Modified: trunk/src/tracker-fts/tracker-fts.c
==============================================================================
--- trunk/src/tracker-fts/tracker-fts.c	(original)
+++ trunk/src/tracker-fts/tracker-fts.c	Mon Oct 20 08:31:28 2008
@@ -4001,7 +4001,12 @@
     pos_array[i] = NULL;
   }
 
-  if (dlrAtEnd (&p->reader)) return;
+  if (dlrAtEnd (&p->reader)) {
+	  // TODO: this is the case for the last row, which means that we don't do
+	  // a count for that row. I don't yet understand how to fix this. (PVH 20
+	  // Oct. Msg for Jamie).
+	return;
+  }
 
   plrInit(&plReader, &p->reader);
 
@@ -4029,7 +4034,6 @@
   }
 
   zDoc = (const char*)sqlite3_column_text(p->pStmt, hit_column+1);
-	printf ("%s\n", zDoc);
   nDoc = sqlite3_column_bytes(p->pStmt, hit_column+1);
   snippetOffsetsOfColumn(&p->q, &p->snippet, hit_column, zDoc, nDoc, iPos);
 



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