MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / CommandCtx_GetRedisCtx

Function CommandCtx_GetRedisCtx

src/commands/cmd_context.c:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76RedisModuleCtx *CommandCtx_GetRedisCtx
77(
78 CommandCtx *command_ctx
79) {
80 ASSERT(command_ctx != NULL);
81 // either we already have a context or block client is set
82 if(command_ctx->ctx) {
83 return command_ctx->ctx;
84 }
85
86 ASSERT(command_ctx->bc != NULL);
87
88 command_ctx->ctx = RedisModule_GetThreadSafeContext(command_ctx->bc);
89 return command_ctx->ctx;
90}
91
92RedisModuleBlockedClient *CommandCtx_GetBlockingClient
93(

Callers 3

_queryFunction · 0.85
Graph_ExplainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected