Skip to content

Commit b73f2f7

Browse files
author
leefeng
committed
Avoid unlock twice when io_setup failed
1 parent e6afdbb commit b73f2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linux_aligned_file_reader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ void LinuxAlignedFileReader::register_thread()
160160
{
161161
diskann::cout << "allocating ctx: " << ctx << " to thread-id:" << my_id << std::endl;
162162
ctx_map[my_id] = ctx;
163+
lk.unlock();
163164
}
164-
lk.unlock();
165165
}
166166

167167
void LinuxAlignedFileReader::deregister_thread()

0 commit comments

Comments
 (0)