bugfixed: cpool_node object pool must use lock

pull/37/head
YuQing 2020-12-01 21:05:45 +08:00
parent 3d74837527
commit 0995f447cb
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -53,6 +53,7 @@ src/tests/test_atomic
src/tests/test_file_write_hole
src/tests/test_file_lock
src/tests/test_thread_pool
src/tests/test_data_visible
# other
*.swp

View File

@ -57,7 +57,7 @@ int conn_pool_init_ex1(ConnectionPool *cp, int connect_timeout,
if ((result=fast_mblock_init_ex1(&cp->node_allocator, "cpool_node",
sizeof(ConnectionNode) + sizeof(ConnectionInfo) +
extra_data_size, init_capacity, alloc_elements_limit,
NULL, NULL, false)) != 0)
NULL, NULL, true)) != 0)
{
return result;
}