memgraph/tests/e2e/concurrent_query_modules/CMakeLists.txt
gvolfing 476968e2c8
Fix concurrent query module race condition (#1158)
Concurrent access to the same query module had a race condition on the
pointer that was used to handle the custom memory management. With this
commit, a mapping has been added to keep information about what
thread used the pointer to handle the memory resources. This should be
fine since the respected query executions are running on a dedicated
thread. Access to the mapping itself is threadsafe. A simple RAII
wrapper for the mapping container has also been added for simpler
client-side use.
2023-08-21 16:45:36 +02:00

9 lines
312 B
CMake

function(copy_concurrent_query_modules_e2e_python_files FILE_NAME)
copy_e2e_python_files(concurrent_query_modules ${FILE_NAME})
endfunction()
copy_concurrent_query_modules_e2e_python_files(client.py)
copy_concurrent_query_modules_e2e_python_files(con_query_modules.py)
add_subdirectory(test_query_modules)