- implement xstring by librtti
This commit is contained in:
parent
15fac3cda1
commit
ce69347581
7 changed files with 250 additions and 95 deletions
|
|
@ -514,6 +514,8 @@ int cluster_init(cluster_t* c)
|
|||
|
||||
iomgr_set_ssl_ctx(&(c->iomgr), ssl_ctx);
|
||||
|
||||
xstring_table_init(c->myconf->cluster_config->xstrings->nhash_slots);
|
||||
|
||||
register_xstring(&(c->objmgr),
|
||||
c->myconf->cluster_config->xstrings->nhash_slots,
|
||||
c->myconf->cluster_config->xstrings->delta);
|
||||
|
|
@ -583,7 +585,7 @@ static int check_worker_timeout_(void* arg1, void* arg2)
|
|||
if (w1 == NULL) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
config = c->myconf->cluster_config;
|
||||
timeout = config->heartbeat_interval * config->inactive_heartbeat_count;
|
||||
|
||||
|
|
@ -712,5 +714,7 @@ void cluster_fini(cluster_t* c)
|
|||
|
||||
cleanup_openssl();
|
||||
|
||||
xstring_table_fini();
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue