comparison audioDB.cpp @ 467:51d02229288f

Removed silly restriction on query point. Now has a more sensible upper bound
author mas01mc
date Wed, 31 Dec 2008 14:08:43 +0000
parents dc099cd34b5b
children f9d86b1db21c
comparison
equal deleted inserted replaced
464:f283448a40db 467:51d02229288f
700 error("unsupported query type",args_info.QUERY_arg); 700 error("unsupported query type",args_info.QUERY_arg);
701 701
702 if(!args_info.exhaustive_flag){ 702 if(!args_info.exhaustive_flag){
703 queryPoint = args_info.qpoint_arg; 703 queryPoint = args_info.qpoint_arg;
704 usingQueryPoint=1; 704 usingQueryPoint=1;
705 if(queryPoint<0 || queryPoint >10000) 705 if(queryPoint<0 || queryPoint >O2_MAX_VECTORS)
706 error("queryPoint out of range: 0 <= queryPoint <= 10000"); 706 error("queryPoint out of range: 0 <= queryPoint <= O2_MAX_VECTORS");
707 } 707 }
708 708
709 // Whether to pre-load LSH hash tables for query (default on, if flag set then off) 709 // Whether to pre-load LSH hash tables for query (default on, if flag set then off)
710 lsh_in_core = !args_info.lsh_on_disk_flag; 710 lsh_in_core = !args_info.lsh_on_disk_flag;
711 711