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

Function getCommandCtx

plugins/python/redisgears_python.c:2915–2924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2913}
2914
2915static CommandCtx* getCommandCtx(PythonThreadCtx* ptctx){
2916 CommandCtx* commandCtx = NULL;
2917 if(ptctx->currEctx){
2918 commandCtx = RedisGears_CommandCtxGet(ptctx->currEctx);
2919 }else{
2920 commandCtx = ptctx->commandCtx;
2921 }
2922
2923 return commandCtx;
2924}
2925
2926static CommandReaderTriggerCtx* getCommandReaderTriggerCtx(PythonThreadCtx* ptctx){
2927 CommandReaderTriggerCtx* crtCtx = NULL;

Callers 3

getGearsSessionFunction · 0.85
overrideReplyFunction · 0.85
getCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected