comparison query.cpp @ 329:8f11ea4d9cd2

Added some extra logging to alert the user to which query is called
author mas01mc
date Sat, 30 Aug 2008 14:33:24 +0000
parents c93be2f3a674
children a36e9cc666ce
comparison
equal deleted inserted replaced
328:7ff56cce3297 329:8f11ea4d9cd2
79 default: 79 default:
80 error("unrecognized queryType in query()"); 80 error("unrecognized queryType in query()");
81 } 81 }
82 82
83 // Test for index (again) here 83 // Test for index (again) here
84 if(radius && index_exists(dbName, radius, sequenceLength)) 84 if(radius && index_exists(dbName, radius, sequenceLength)){
85 VERB_LOG(1, "Calling indexed query on database %s, radius=%f, sequenceLength=%d\n", dbName, radius, sequenceLength);
85 index_query_loop(dbName, query_from_key_index); 86 index_query_loop(dbName, query_from_key_index);
86 else 87 }
88 else{
89 VERB_LOG(1, "Calling brute-force query on database %s\n", dbName);
87 query_loop(dbName, query_from_key_index); 90 query_loop(dbName, query_from_key_index);
91 }
88 92
89 reporter->report(fileTable, adbQueryResponse); 93 reporter->report(fileTable, adbQueryResponse);
90 } 94 }
91 95
92 // return ordinal position of key in keyTable 96 // return ordinal position of key in keyTable