Lines Matching defs:ctxs
55 redisContext** ctxs; /* thread-specific redis contexts */
73 if((*moddata)->ctxs) {
76 if((*moddata)->ctxs[i])
77 redisFree((*moddata)->ctxs[i]);
79 free((*moddata)->ctxs);
152 moddata->ctxs = calloc(env->cfg->num_threads, sizeof(redisContext*));
153 if(!moddata->ctxs) {
188 moddata->ctxs[i] = ctx;
262 ctx = d->ctxs[env->alloc->thread_num];
269 d->ctxs[env->alloc->thread_num] = ctx;
282 d->ctxs[env->alloc->thread_num] = NULL;