diff --git a/src/windows_aligned_file_reader.cpp b/src/windows_aligned_file_reader.cpp index 3650b928a..9e6eef418 100644 --- a/src/windows_aligned_file_reader.cpp +++ b/src/windows_aligned_file_reader.cpp @@ -35,7 +35,8 @@ void WindowsAlignedFileReader::register_thread() std::unique_lock lk(this->ctx_mut); if (this->ctx_map.find(std::this_thread::get_id()) != ctx_map.end()) { - diskann::cout << "Warning:: Duplicate registration for thread_id : " << std::this_thread::get_id() << std::endl; + diskann::cout << "Warning:: Duplicate registration for thread_id : " << std::this_thread::get_id() << ", skip." << std::endl; + return; } IOContext ctx;