Skip to content

Commit

Permalink
Optimize sub pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
lazio579 committed Mar 14, 2017
1 parent b32ec74 commit 567dd1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tc_mysql_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define MAX_USER_INFO 4096
#define ENCRYPT_LEN 16
#define SEED_323_LENGTH 8
#define TC_LARGE_POOL_SIZE (3 * TC_PLUGIN_POOL_SIZE)

typedef struct {
uint32_t sec_auth_checked:1;
Expand Down Expand Up @@ -44,7 +45,7 @@ static int
init_mysql_module()
{

ctx.pool = tc_create_pool(TC_PLUGIN_POOL_SIZE * 3, 0, 0);
ctx.pool = tc_create_pool(TC_LARGE_POOL_SIZE, TC_PLUGIN_POOL_SUB_SIZE, 0);

if (ctx.pool) {

Expand Down

0 comments on commit 567dd1c

Please sign in to comment.