From b73f2f7f69b5eaf4eddaf91cc4f60db640ba91a4 Mon Sep 17 00:00:00 2001 From: leefeng Date: Wed, 6 Nov 2024 10:24:40 +0000 Subject: [PATCH] Avoid unlock twice when io_setup failed --- src/linux_aligned_file_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()