Lines Matching refs:argv
48 slowlogEntry *slowlogCreateEntry(robj **argv, int argc, long long duration) { in slowlogCreateEntry() argument
54 se->argv = zmalloc(sizeof(robj*)*slargc); in slowlogCreateEntry()
60 se->argv[j] = createObject(OBJ_STRING, in slowlogCreateEntry()
65 if (argv[j]->type == OBJ_STRING && in slowlogCreateEntry()
66 sdsEncodedObject(argv[j]) && in slowlogCreateEntry()
67 sdslen(argv[j]->ptr) > SLOWLOG_ENTRY_MAX_STRING) in slowlogCreateEntry()
69 sds s = sdsnewlen(argv[j]->ptr, SLOWLOG_ENTRY_MAX_STRING); in slowlogCreateEntry()
73 sdslen(argv[j]->ptr) - SLOWLOG_ENTRY_MAX_STRING); in slowlogCreateEntry()
74 se->argv[j] = createObject(OBJ_STRING,s); in slowlogCreateEntry()
76 se->argv[j] = argv[j]; in slowlogCreateEntry()
77 incrRefCount(argv[j]); in slowlogCreateEntry()
96 decrRefCount(se->argv[j]); in slowlogFreeEntry()
97 zfree(se->argv); in slowlogFreeEntry()
112 void slowlogPushEntryIfNeeded(robj **argv, int argc, long long duration) { in slowlogPushEntryIfNeeded() argument
115 listAddNodeHead(server.slowlog,slowlogCreateEntry(argv,argc,duration)); in slowlogPushEntryIfNeeded()
131 if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr,"reset")) { in slowlogCommand()
134 } else if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr,"len")) { in slowlogCommand()
137 !strcasecmp(c->argv[1]->ptr,"get")) in slowlogCommand()
146 getLongFromObjectOrReply(c,c->argv[2],&count,NULL) != C_OK) in slowlogCommand()
161 addReplyBulk(c,se->argv[j]); in slowlogCommand()