diff --git a/src/linux_aligned_file_reader.cpp b/src/linux_aligned_file_reader.cpp index 31bf5f827..4eb3ff38a 100644 --- a/src/linux_aligned_file_reader.cpp +++ b/src/linux_aligned_file_reader.cpp @@ -160,8 +160,8 @@ void LinuxAlignedFileReader::register_thread() { diskann::cout << "allocating ctx: " << ctx << " to thread-id:" << my_id << std::endl; ctx_map[my_id] = ctx; + lk.unlock(); } - lk.unlock(); } void LinuxAlignedFileReader::deregister_thread()