mirror of https://github.com/yandex/odyssey.git
odissey: add stream_cache
This commit is contained in:
parent
4aa7dad77c
commit
25ec1a27eb
|
@ -55,6 +55,7 @@ void od_instance_init(od_instance_t *instance)
|
|||
od_scheme_init(&instance->scheme);
|
||||
od_schememgr_init(&instance->scheme_mgr);
|
||||
od_idmgr_init(&instance->id_mgr);
|
||||
shapito_cache_init(&instance->stream_cache);
|
||||
instance->config_file = NULL;
|
||||
instance->is_shared = 0;
|
||||
|
||||
|
@ -72,6 +73,7 @@ void od_instance_free(od_instance_t *instance)
|
|||
od_pid_unlink(&instance->pid, instance->scheme.pid_file);
|
||||
od_scheme_free(&instance->scheme);
|
||||
od_logger_close(&instance->logger);
|
||||
shapito_cache_free(&instance->stream_cache);
|
||||
machinarium_free();
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ struct od_instance
|
|||
od_idmgr_t id_mgr;
|
||||
od_schememgr_t scheme_mgr;
|
||||
od_scheme_t scheme;
|
||||
shapito_cache_t stream_cache;
|
||||
int is_shared;
|
||||
char *config_file;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue