changeset 533:eb5dd50dd7d1 multiprobeLSH

Added warning about deprecated LSH_N_POINT_BITS coding. Only affects indexes built prior to rev 820
author mas01mc
date Tue, 03 Feb 2009 02:04:06 +0000
parents 06409b6e268f
children 02e0a9ecfd0f
files Makefile query-indexed.cpp
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Feb 02 17:41:02 2009 +0000
+++ b/Makefile	Tue Feb 03 02:04:06 2009 +0000
@@ -17,7 +17,10 @@
 MINORVERSION=0
 LIBRARY=lib$(EXECUTABLE).so.$(SOVERSION).$(MINORVERSION)
 
-override CFLAGS+=-O3 -fPIC #-fprofile-arcs -ftest-coverage -pg
+override CFLAGS+=-g -O3 -fPIC 
+
+# set to generate profile (gprof) and coverage (gcov) info
+#override CFLAGS+=-fprofile-arcs -ftest-coverage -pg
 
 # set to DUMP hashtables on QUERY load
 #override CFLAGS+=-DLSH_DUMP_CORE_TABLES
--- a/query-indexed.cpp	Mon Feb 02 17:41:02 2009 +0000
+++ b/query-indexed.cpp	Tue Feb 03 02:04:06 2009 +0000
@@ -79,7 +79,9 @@
 // return 0: if index does not exist
 // return nqv: if index exists
 int audiodb_index_query_loop(adb_t *adb, const adb_query_spec_t *spec, adb_qstate_internal_t *qstate) {
-  
+  if(adb->header->flags>>28)
+    cerr << "WARNING: Database created using deprecated LSH_N_POINT_BITS coding: REBUILD INDEXES..." << endl;
+
   double *query = 0, *query_data = 0;
   adb_qpointers_internal_t qpointers = {0};