MCPcopy Create free account
hub / github.com/RedisGears/RedisGears / PythonSessionCtx_Del

Function PythonSessionCtx_Del

plugins/python/redisgears_python.c:694–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694static void PythonSessionCtx_Del(PythonSessionCtx* session){
695 if (session->linkedTo == LinkedTo_PrimaryDict) {
696 RedisModule_DictDelC(SessionsDict, session->sessionId, strlen(session->sessionId), NULL);
697 session->linkedTo = LinkedTo_None;
698 } else if (session->deadNode) {
699 Gears_listDelNode(DeadSessionsList, session->deadNode);
700 }
701}
702
703static void PythonSessionCtx_Unlink(PythonSessionCtx* session){
704 /* Unlink requirements if we are the only owner */

Callers 3

PythonSessionCtx_UnlinkFunction · 0.85
PythonSessionCtx_FreeFunction · 0.85
PythonSessionCtx_SetFunction · 0.85

Calls 1

Gears_listDelNodeFunction · 0.85

Tested by

no test coverage detected