Mercurial > hg > audiodb
diff audioDB.cpp @ 297:7907b50d0995
set the default flag value to 'off' for --lsh_on_disk and made lsh_in_core the compliment of this value
author | mas01mc |
---|---|
date | Fri, 01 Aug 2008 15:13:21 +0000 |
parents | f922c234462f |
children | 3bb4d850557b |
line wrap: on
line diff
--- a/audioDB.cpp Fri Aug 01 15:04:31 2008 +0000 +++ b/audioDB.cpp Fri Aug 01 15:13:21 2008 +0000 @@ -375,7 +375,7 @@ dbName=args_info.database_arg; // Whether to store LSH hash tables for query in core (FORMAT2) - lsh_in_core = args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested + lsh_in_core = !args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested lsh_param_w = args_info.lsh_w_arg; if(!(lsh_param_w>0 && lsh_param_w<=O2_SERIAL_MAX_BINWIDTH)) @@ -467,7 +467,7 @@ } // Whether to pre-load LSH hash tables for query (default on, if flag set then off) - lsh_in_core = args_info.lsh_on_disk_flag; + lsh_in_core = !args_info.lsh_on_disk_flag; // Whether to perform exact evaluation of points returned by LSH lsh_exact = args_info.lsh_exact_flag;