| 74 | } |
| 75 | |
| 76 | RedisModuleCtx *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 | |
| 92 | RedisModuleBlockedClient *CommandCtx_GetBlockingClient |
| 93 | ( |
no outgoing calls
no test coverage detected