Skip to content

Commit 5ba6a5d

Browse files
authored
Fix BANN build failure after adding streamingDiskANN. (#257)
* Fix BANN build failure after adding streamingDiskANN. * Throw exception when calling load_pq_centroid_bin if EXEC_ENV_OLS is defined. * Fix Variable name. * Remove commented line.
1 parent 351bf79 commit 5ba6a5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,12 @@ namespace diskann {
14241424
copy_aligned_data_from_file<_u8>(pq_compressed_file.c_str(), _pq_data,
14251425
file_num_points, _num_pq_chunks,
14261426
_num_pq_chunks);
1427+
#ifdef EXEC_ENV_OLS
1428+
throw ANNException("load_pq_centroid_bin should not be called when EXEC_ENV_OLS is defined.",
1429+
-1, __FUNCSIG__, __FILE__, __LINE__);
1430+
#else
14271431
_pq_table.load_pq_centroid_bin(pq_pivots_file.c_str(), _num_pq_chunks);
1432+
#endif
14281433
}
14291434

14301435
copy_aligned_data_from_file<T>(filename, _data, file_num_points, file_dim,

0 commit comments

Comments
 (0)