MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / remove

Method remove

extra/yassl/src/yassl_int.cpp:1831–1840  ·  view source on GitHub ↗

remove a session by id

Source from the content-addressed store, hash-verified

1829
1830// remove a session by id
1831void Sessions::remove(const opaque* id)
1832{
1833 Lock guard(mutex_);
1834 sess_iterator find = STL::find_if(list_.begin(), list_.end(),
1835 sess_match(id));
1836 if (find != list_.end()) {
1837 del_ptr_zero()(*find);
1838 list_.erase(find);
1839 }
1840}
1841
1842
1843// flush expired sessions from cache

Callers

nothing calls this directly

Calls 6

find_ifFunction · 0.85
sess_matchClass · 0.85
del_ptr_zeroClass · 0.85
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected