Skip to content

Commit

Permalink
Avoid unlock twice when io_setup failed
Browse files Browse the repository at this point in the history
  • Loading branch information
leefeng committed Nov 6, 2024
1 parent e6afdbb commit b73f2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux_aligned_file_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b73f2f7

Please sign in to comment.