提交 0995f447 编写于 作者: Y YuQing

bugfixed: cpool_node object pool must use lock

上级 3d748375
......@@ -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
......
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册