@@ -779,8 +779,8 @@ int PQFlashIndex<T, LabelT>::load_from_separate_paths(uint32_t num_threads, cons
779
779
#ifdef EXEC_ENV_OLS
780
780
if (files.fileExists (labels_file))
781
781
{
782
- FileContent &content = files.getContent (labels_file);
783
- std::stringstream infile (std::string ((const char *)content ._content , content ._size ));
782
+ FileContent &content_labels = files.getContent (labels_file);
783
+ std::stringstream infile (std::string ((const char *)content_labels ._content , content_labels ._size ));
784
784
#else
785
785
if (file_exists (labels_file))
786
786
{
@@ -798,8 +798,8 @@ int PQFlashIndex<T, LabelT>::load_from_separate_paths(uint32_t num_threads, cons
798
798
#endif
799
799
800
800
#ifdef EXEC_ENV_OLS
801
- FileContent &content = files.getContent (labels_map_file);
802
- std::stringstream map_reader (std::string ((const char *)content ._content , content ._size ));
801
+ FileContent &content_labels_map = files.getContent (labels_map_file);
802
+ std::stringstream map_reader (std::string ((const char *)content_labels_map ._content , content_labels_map ._size ));
803
803
#else
804
804
std::ifstream map_reader (labels_map_file);
805
805
#endif
@@ -812,8 +812,9 @@ int PQFlashIndex<T, LabelT>::load_from_separate_paths(uint32_t num_threads, cons
812
812
#ifdef EXEC_ENV_OLS
813
813
if (files.fileExists (labels_to_medoids))
814
814
{
815
- FileContent &content = files.getContent (labels_to_medoids);
816
- std::stringstream medoid_stream (std::string ((const char *)content._content , content._size ));
815
+ FileContent &content_labels_to_meoids = files.getContent (labels_to_medoids);
816
+ std::stringstream medoid_stream (
817
+ std::string ((const char *)content_labels_to_meoids._content , content_labels_to_meoids._size ));
817
818
#else
818
819
if (file_exists (labels_to_medoids))
819
820
{
@@ -852,8 +853,9 @@ int PQFlashIndex<T, LabelT>::load_from_separate_paths(uint32_t num_threads, cons
852
853
#ifdef EXEC_ENV_OLS
853
854
if (files.fileExists (univ_label_file))
854
855
{
855
- FileContent &content = files.getContent (univ_label_file);
856
- std::stringstream universal_label_reader (std::string ((const char *)content._content , content._size ));
856
+ FileContent &content_univ_label = files.getContent (univ_label_file);
857
+ std::stringstream universal_label_reader (
858
+ std::string ((const char *)content_univ_label._content , content_univ_label._size ));
857
859
#else
858
860
if (file_exists (univ_label_file))
859
861
{
@@ -872,8 +874,9 @@ int PQFlashIndex<T, LabelT>::load_from_separate_paths(uint32_t num_threads, cons
872
874
#ifdef EXEC_ENV_OLS
873
875
if (files.fileExists (dummy_map_file))
874
876
{
875
- FileContent &content = files.getContent (dummy_map_file);
876
- std::stringstream dummy_map_stream (std::string ((const char *)content._content , content._size ));
877
+ FileContent &content_dummy_map = files.getContent (dummy_map_file);
878
+ std::stringstream dummy_map_stream (
879
+ std::string ((const char *)content_dummy_map._content , content_dummy_map._size ));
877
880
#else
878
881
if (file_exists (dummy_map_file))
879
882
{
0 commit comments