get_session
tmp_session = get_session(&(pool->idle_list_head), flags);
tmp_session = get_session(&(pool->persist_list_head), flags);