changeset 544:283b412083db multiprobeLSH

A fix for using_query_point with query_by_key (i.e. not by file). This code path still loads the entire query file, even if using one vector. Loading of query data needs better rationalization.
author mas01mc
date Sun, 08 Feb 2009 06:41:55 +0000
parents 6afeb2c76957
children bf89c80ec4cc
files audioDB.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audioDB.cpp	Sun Feb 08 05:06:01 2009 +0000
+++ b/audioDB.cpp	Sun Feb 08 06:41:55 2009 +0000
@@ -873,7 +873,7 @@
   qspec.qid.flags = 0;
   qspec.qid.flags |= usingQueryPoint ? 0 : ADB_QID_FLAG_EXHAUSTIVE;
   qspec.qid.flags |= lsh_exact ? 0 : ADB_QID_FLAG_ALLOW_FALSE_POSITIVES;
-  if(usingQueryPoint)
+  if(!query_from_key && usingQueryPoint) // FIXME: query_from_key uses qspec.qid.sequence_start to locate data
     qspec.qid.sequence_start = 0;
   else
     qspec.qid.sequence_start = queryPoint;