Fix 2 bugs in NFS-RDMA allocator, add a test for both
1) alloc() could add the region start into freelist instead of its free part 2) free() was merging freed buffers incorrectly both forward and backward
This commit is contained in:
@@ -35,3 +35,8 @@ target_link_libraries(vitastor-nfs
|
||||
vitastor_kv
|
||||
${RDMACM_LIBRARIES}
|
||||
)
|
||||
|
||||
# test_rdma_alloc
|
||||
add_executable(test_rdma_alloc EXCLUDE_FROM_ALL test_rdma_alloc.cpp rdma_alloc.cpp)
|
||||
add_dependencies(build_tests test_rdma_alloc)
|
||||
add_test(NAME test_rdma_alloc COMMAND test_rdma_alloc)
|
||||
|
||||
Reference in New Issue
Block a user