diff --git a/src/index.cpp b/src/index.cpp index bfb5a70f3..22f6c8ab0 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -1424,7 +1424,12 @@ namespace diskann { copy_aligned_data_from_file<_u8>(pq_compressed_file.c_str(), _pq_data, file_num_points, _num_pq_chunks, _num_pq_chunks); +#ifdef EXEC_ENV_OLS + throw ANNException("load_pq_centroid_bin should not be called when EXEC_ENV_OLS is defined.", + -1, __FUNCSIG__, __FILE__, __LINE__); +#else _pq_table.load_pq_centroid_bin(pq_pivots_file.c_str(), _num_pq_chunks); +#endif } copy_aligned_data_from_file(filename, _data, file_num_points, file_dim,