| 124 | } |
| 125 | |
| 126 | int propagateTestThreadCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) |
| 127 | { |
| 128 | REDISMODULE_NOT_USED(argv); |
| 129 | REDISMODULE_NOT_USED(argc); |
| 130 | |
| 131 | pthread_t tid; |
| 132 | if (pthread_create(&tid,NULL,threadMain,NULL) != 0) |
| 133 | return RedisModule_ReplyWithError(ctx,"-ERR Can't start thread"); |
| 134 | REDISMODULE_NOT_USED(tid); |
| 135 | |
| 136 | RedisModule_ReplyWithSimpleString(ctx,"OK"); |
| 137 | return REDISMODULE_OK; |
| 138 | } |
| 139 | |
| 140 | int propagateTestSimpleCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) |
| 141 | { |
nothing calls this directly
no test coverage detected