Mercurial > hg > audiodb
diff 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 |
line wrap: on
line diff
--- a/query.cpp Sat Aug 30 13:41:50 2008 +0000 +++ b/query.cpp Sat Aug 30 14:33:24 2008 +0000 @@ -81,10 +81,14 @@ } // Test for index (again) here - if(radius && index_exists(dbName, radius, sequenceLength)) + if(radius && index_exists(dbName, radius, sequenceLength)){ + VERB_LOG(1, "Calling indexed query on database %s, radius=%f, sequenceLength=%d\n", dbName, radius, sequenceLength); index_query_loop(dbName, query_from_key_index); - else + } + else{ + VERB_LOG(1, "Calling brute-force query on database %s\n", dbName); query_loop(dbName, query_from_key_index); + } reporter->report(fileTable, adbQueryResponse); }