Skip to content

Commit 2dbdf7f

Browse files
committed
Merge branch 'fix/multithread-search-after-restore' into main-dev
2 parents 3674370 + 203a76b commit 2dbdf7f

6 files changed

Lines changed: 405 additions & 291 deletions

File tree

include/usearch/index.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,9 @@ class memory_mapped_file_t {
17511751
{
17521752
}
17531753

1754+
memory_mapped_file_t(memory_mapped_file_t const&) = delete;
1755+
memory_mapped_file_t& operator=(memory_mapped_file_t const&) = delete;
1756+
17541757
memory_mapped_file_t(byte_t* data, std::size_t length) noexcept : ptr_(data), length_(length) {}
17551758

17561759
memory_mapped_file_t& operator=(memory_mapped_file_t&& other) noexcept {

javascript/lib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ Napi::Value exactSearch(Napi::CallbackInfo const& ctx) {
388388
return env.Null();
389389
}
390390

391-
executor_default_t executor(threads);
391+
executor_default_t executor{threads};
392392
exact_search_t search;
393393

394394
// Performing the exact search.

0 commit comments

Comments
 (0)