Change session registry to a template class

The template class wraps a HashMap such that only a few operations
are allowed. Usage requires specializing a RegistryTraits class
template for each entry type.
This commit is contained in:
Esa Korhonen
2017-05-16 13:24:00 +03:00
parent 322983a5f4
commit dbfd631fed
7 changed files with 148 additions and 63 deletions

View File

@ -133,7 +133,7 @@ bool mxs_worker_register_session(MXS_SESSION* session);
* @param id Which id to remove.
* @return The removed session or NULL if not found.
*/
MXS_SESSION* mxs_worker_deregister_session(uint64_t id);
bool mxs_worker_deregister_session(uint64_t id);
/**
* Find a session in the current worker's session container.