# HG changeset patch # User mas01mc # Date 1233626646 0 # Node ID eb5dd50dd7d1abd7b56fa5c16b8d9f28be381735 # Parent 06409b6e268f47166820a5c04340d8785728b489 Added warning about deprecated LSH_N_POINT_BITS coding. Only affects indexes built prior to rev 820 diff -r 06409b6e268f -r eb5dd50dd7d1 Makefile --- 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 diff -r 06409b6e268f -r eb5dd50dd7d1 query-indexed.cpp --- 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};