# HG changeset patch # User mas01mc # Date 1234075315 0 # Node ID 283b412083dbb42778aae7e0b3b4e8d3057a5ae9 # Parent 6afeb2c76957f8289d31d6289be09c421c4e1108 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. diff -r 6afeb2c76957 -r 283b412083db audioDB.cpp --- 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;