MCPcopy Create free account
hub / github.com/F-Stack/f-stack / redisOpArrayAppend

Function redisOpArrayAppend

app/redis-6.2.6/src/server.c:3500–3514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3498}
3499
3500int redisOpArrayAppend(redisOpArray *oa, struct redisCommand *cmd, int dbid,
3501 robj **argv, int argc, int target)
3502{
3503 redisOp *op;
3504
3505 oa->ops = zrealloc(oa->ops,sizeof(redisOp)*(oa->numops+1));
3506 op = oa->ops+oa->numops;
3507 op->cmd = cmd;
3508 op->dbid = dbid;
3509 op->argv = argv;
3510 op->argc = argc;
3511 op->target = target;
3512 oa->numops++;
3513 return oa->numops;
3514}
3515
3516void redisOpArrayFree(redisOpArray *oa) {
3517 while(oa->numops) {

Callers 1

alsoPropagateFunction · 0.85

Calls 1

zreallocFunction · 0.85

Tested by

no test coverage detected