Skip to content

Commit

Permalink
skip file handle creation in duplicate registration. (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanhaoji2 authored Sep 13, 2024
1 parent 2d0b88f commit ce63c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/windows_aligned_file_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ void WindowsAlignedFileReader::register_thread()
std::unique_lock<std::mutex> 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;
Expand Down

0 comments on commit ce63c03

Please sign in to comment.