comparison query-indexed.cpp @ 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
comparison
equal deleted inserted replaced
532:06409b6e268f 533:eb5dd50dd7d1
77 77
78 // return -1 on error 78 // return -1 on error
79 // return 0: if index does not exist 79 // return 0: if index does not exist
80 // return nqv: if index exists 80 // return nqv: if index exists
81 int audiodb_index_query_loop(adb_t *adb, const adb_query_spec_t *spec, adb_qstate_internal_t *qstate) { 81 int audiodb_index_query_loop(adb_t *adb, const adb_query_spec_t *spec, adb_qstate_internal_t *qstate) {
82 82 if(adb->header->flags>>28)
83 cerr << "WARNING: Database created using deprecated LSH_N_POINT_BITS coding: REBUILD INDEXES..." << endl;
84
83 double *query = 0, *query_data = 0; 85 double *query = 0, *query_data = 0;
84 adb_qpointers_internal_t qpointers = {0}; 86 adb_qpointers_internal_t qpointers = {0};
85 87
86 adb_qcallback_t callback_data; 88 adb_qcallback_t callback_data;
87 callback_data.adb = adb; 89 callback_data.adb = adb;