Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 34) sorted by relevance

12

/redis-3.2.3/src/
H A Dredis-benchmark.c650 char *data, *cmd; in main() local
712 free(cmd); in main()
730 free(cmd); in main()
736 free(cmd); in main()
742 free(cmd); in main()
748 free(cmd); in main()
754 free(cmd); in main()
760 free(cmd); in main()
766 free(cmd); in main()
772 free(cmd); in main()
[all …]
H A Dserver.c2058 op->cmd = cmd; in redisOpArrayAppend()
2093 return cmd; in lookupCommandByCString()
2106 if (!cmd) cmd = dictFetchValue(server.orig_commands,name); in lookupCommandOrOriginal()
2107 return cmd; in lookupCommandOrOriginal()
2356 if (!c->cmd) { in processCommand()
2361 } else if ((c->cmd->arity > 0 && c->cmd->arity != c->argc) || in processCommand()
2385 !(c->cmd->getkeys_proc == NULL && c->cmd->firstkey == 0 && in processCommand()
2515 c->cmd->proc != multiCommand && c->cmd->proc != watchCommand) in processCommand()
2721 if (!cmd) { in addReplyCommand()
2780 if (!cmd) { in commandCommand()
[all …]
H A Dmulti.c63 mc->cmd = c->cmd; in queueMultiCommand()
143 orig_cmd = c->cmd; in execCommand()
148 c->cmd = c->mstate.commands[j].cmd; in execCommand()
154 if (!must_propagate && !(c->cmd->flags & CMD_READONLY)) { in execCommand()
164 c->mstate.commands[j].cmd = c->cmd; in execCommand()
168 c->cmd = orig_cmd; in execCommand()
H A Daof.c489 if (cmd->proc == expireCommand || cmd->proc == setexCommand || in catAppendOnlyExpireAtCommand()
490 cmd->proc == expireatCommand) in catAppendOnlyExpireAtCommand()
495 if (cmd->proc == expireCommand || cmd->proc == pexpireCommand || in catAppendOnlyExpireAtCommand()
496 cmd->proc == setexCommand || cmd->proc == psetexCommand) in catAppendOnlyExpireAtCommand()
526 if (cmd->proc == expireCommand || cmd->proc == pexpireCommand || in feedAppendOnlyFile()
530 } else if (cmd->proc == setexCommand || cmd->proc == psetexCommand) { in feedAppendOnlyFile()
645 struct redisCommand *cmd; in loadAppendOnlyFile() local
693 if (!cmd) { in loadAppendOnlyFile()
699 cmd->proc(fakeClient); in loadAppendOnlyFile()
1073 if (rioWrite(&aof,cmd,sizeof(cmd)-1) == 0) goto werr; in rewriteAppendOnlyFile()
[all …]
H A Ddb.c111 server.current_client->cmd && in lookupKeyReadWithFlags()
112 server.current_client->cmd->flags & CMD_READONLY) in lookupKeyReadWithFlags()
1069 if (cmd->firstkey == 0) { in getKeysUsingCommandTable()
1073 last = cmd->lastkey; in getKeysUsingCommandTable()
1076 for (j = cmd->firstkey; j <= last; j += cmd->keystep) { in getKeysUsingCommandTable()
1096 if (cmd->getkeys_proc) { in getKeysFromCommand()
1097 return cmd->getkeys_proc(cmd,argv,argc,numkeys); in getKeysFromCommand()
1113 UNUSED(cmd); in zunionInterGetKeys()
1142 UNUSED(cmd); in evalGetKeys()
1170 UNUSED(cmd); in sortGetKeys()
[all …]
H A Dredis-trib.rb1422 cmd = argv[1..-1]
1423 cmd[0] = cmd[0].upcase
1427 xputs ">>> Calling #{cmd.join(" ")}"
1430 res = n.r.send(*cmd)
1479 cmd << :copy if use_copy
1480 cmd << :replace if use_replace
1481 source.client.call(cmd)
1499 def parse_options(cmd) argument
1513 if ALLOWED_OPTIONS[cmd] == nil || ALLOWED_OPTIONS[cmd][option] == nil
1539 if ALLOWED_OPTIONS[cmd]
[all …]
H A Dscripting.c350 struct redisCommand *cmd; in luaRedisGenericCommand() local
455 cmd = lookupCommand(argv[0]->ptr); in luaRedisGenericCommand()
456 if (!cmd || ((cmd->arity > 0 && cmd->arity != argc) || in luaRedisGenericCommand()
457 (argc < -cmd->arity))) in luaRedisGenericCommand()
459 if (cmd) in luaRedisGenericCommand()
466 c->cmd = c->lastcmd = cmd; in luaRedisGenericCommand()
469 if (cmd->flags & CMD_NOSCRIPT) { in luaRedisGenericCommand()
477 if (cmd->flags & CMD_WRITE) { in luaRedisGenericCommand()
502 (cmd->flags & CMD_DENYOOM)) in luaRedisGenericCommand()
511 if (cmd->flags & CMD_WRITE) server.lua_write_dirty = 1; in luaRedisGenericCommand()
[all …]
H A Dserver.h519 struct redisCommand *cmd; member
575 struct redisCommand *cmd, *lastcmd; /* Last command executed. */ member
677 struct redisCommand *cmd; member
1265 void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv, int argc);
1313 void propagate(struct redisCommand *cmd, int dbid, robj **argv, int argc, int flags);
1314 void alsoPropagate(struct redisCommand *cmd, int dbid, robj **argv, int argc, int target);
1432 int *getKeysFromCommand(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
1434 int *zunionInterGetKeys(struct redisCommand *cmd,robj **argv, int argc, int *numkeys);
1435 int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
1436 int *sortGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
[all …]
H A Dreplication.c1188 sds cmd = sdsempty(); in sendSynchronousCommand() local
1195 if (sdslen(cmd) != 0) cmd = sdscatlen(cmd," ",1); in sendSynchronousCommand()
1196 cmd = sdscat(cmd,arg); in sendSynchronousCommand()
1198 cmd = sdscatlen(cmd,"\r\n",2); in sendSynchronousCommand()
1201 if (syncWrite(fd,cmd,sdslen(cmd),server.repl_syncio_timeout*1000) in sendSynchronousCommand()
1204 sdsfree(cmd); in sendSynchronousCommand()
1208 sdsfree(cmd); in sendSynchronousCommand()
/redis-3.2.3/deps/hiredis/
H A Dtest.c117 char *cmd; in test_format_commands() local
124 free(cmd); in test_format_commands()
130 free(cmd); in test_format_commands()
136 free(cmd); in test_format_commands()
142 free(cmd); in test_format_commands()
148 free(cmd); in test_format_commands()
154 free(cmd); in test_format_commands()
160 free(cmd); in test_format_commands()
211 free(cmd); in test_format_commands()
217 free(cmd); in test_format_commands()
[all …]
H A Dhiredis.c891 cmd[pos] = '\0'; in redisvFormatCommand()
894 *target = cmd; in redisvFormatCommand()
907 if (cmd != NULL) in redisvFormatCommand()
908 free(cmd); in redisvFormatCommand()
969 *target = cmd; in redisFormatCommandArgv()
1270 char *cmd; in redisvAppendCommand() local
1280 free(cmd); in redisvAppendCommand()
1284 free(cmd); in redisvAppendCommand()
1299 char *cmd; in redisAppendCommandArgv() local
1309 free(cmd); in redisAppendCommandArgv()
[all …]
H A Dasync.c61 void __redisAppendCommand(redisContext *c, char *cmd, size_t len);
588 p = nextArgument(cmd,&cstr,&clen); in __redisAsyncCommand()
627 __redisAppendCommand(c,cmd,len); in __redisAsyncCommand()
636 char *cmd; in redisvAsyncCommand() local
639 len = redisvFormatCommand(&cmd,format,ap); in redisvAsyncCommand()
640 status = __redisAsyncCommand(ac,fn,privdata,cmd,len); in redisvAsyncCommand()
641 free(cmd); in redisvAsyncCommand()
655 char *cmd; in redisAsyncCommandArgv() local
658 len = redisFormatCommandArgv(&cmd,argc,argv,argvlen); in redisAsyncCommandArgv()
659 status = __redisAsyncCommand(ac,fn,privdata,cmd,len); in redisAsyncCommandArgv()
[all …]
/redis-3.2.3/tests/integration/
H A Dredis-cli.tcl32 proc run_command {fd cmd} {
33 write_cli $fd $cmd
57 set cmd [format "src/redis-cli -p %d -n 9 $args" [srv port]]
60 set cmd "sh -c \"$value | $cmd\""
63 set cmd "$cmd < $value"
67 set fd [open "|$cmd" "r"]
79 proc run_cli_with_input_pipe {cmd args} {
80 _run_cli [list pipe $cmd] {*}$args
H A Dreplication-4.tcl120 set cmd [list mset]
122 lappend cmd [randomKey] [randomValue]
124 $master {*}$cmd
/redis-3.2.3/deps/jemalloc/test/integration/
H A Dmallocx.c4 get_nsizes_impl(const char *cmd) in get_nsizes_impl() argument
10 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
11 "Unexpected mallctl(\"%s\", ...) failure", cmd); in get_nsizes_impl()
24 get_size_impl(const char *cmd, size_t ind) in get_size_impl() argument
32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
33 0, "Unexpected mallctlnametomib(\"%s\", ...) failure", cmd); in get_size_impl()
37 0, "Unexpected mallctlbymib([\"%s\", %zu], ...) failure", cmd, ind); in get_size_impl()
H A Dxallocx.c52 get_nsizes_impl(const char *cmd) in get_nsizes_impl() argument
58 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
59 "Unexpected mallctl(\"%s\", ...) failure", cmd); in get_nsizes_impl()
86 get_size_impl(const char *cmd, size_t ind) in get_size_impl() argument
94 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
95 0, "Unexpected mallctlnametomib(\"%s\", ...) failure", cmd); in get_size_impl()
99 0, "Unexpected mallctlbymib([\"%s\", %zu], ...) failure", cmd, ind); in get_size_impl()
/redis-3.2.3/tests/unit/
H A Dquit.tcl3 set cmd "*[llength $args]\r\n"
5 append cmd "$[string length $a]\r\n$a\r\n"
7 set _ $cmd
H A Dsort.tcl8 proc create_random_dataset {num cmd} {
25 r $cmd tosort $i
37 foreach {num cmd enc title} {
45 set result [create_random_dataset $num $cmd]
/redis-3.2.3/tests/
H A Dinstances.tcl179 set cmd [lindex $argv 0]
180 if {$cmd eq {continue}} {
182 } elseif {$cmd eq {show-redis-logs}} {
190 } elseif {$cmd eq {show-sentinel-logs}} {
198 } elseif {$cmd eq {ls}} {
230 } elseif {$cmd eq {help}} {
H A Dtest_helper.tcl378 foreach {cmd data} $payload break
379 if {$cmd eq {run}} {
382 error "Unknown test client command: $cmd"
/redis-3.2.3/tests/support/
H A Dredis.tcl90 set cmd "*[expr {[llength $argv]+1}]\r\n"
91 append cmd "$[string length $method]\r\n$method\r\n"
93 append cmd "$[string length $a]\r\n$a\r\n"
95 ::redis::redis_write $fd $cmd
H A Dcluster.tcl219 proc ::redis_cluster::get_keys_from_command {cmd argv} {
220 set cmd [string tolower $cmd]
222 if {[lsearch -exact $::redis_cluster::plain_commands $cmd] != -1} {
227 switch -exact $cmd {
H A Dutil.tcl256 set cmd "*[llength $args]\r\n"
258 append cmd "$[string length $a]\r\n$a\r\n"
260 set _ $cmd
/redis-3.2.3/deps/jemalloc/bin/
H A Djeprof.in1329 open(OBJDUMP, "$cmd |") || error("$cmd: $!\n");
3461 (system($cmd) == 0) || error("Failed to get profile: $cmd: $!\n");
4358 open(OBJDUMP, "$cmd |") || error("$cmd: $!\n");
4398 my $cmd = "";
4416 $cmd = "";
4423 $cmd = $1;
4428 } elsif (!(($cmd eq "LC_SEGMENT" || $cmd eq "LC_SEGMENT_64") &&
4817 if (system("$cmd -i --help >$dev_null 2>&1") == 0) {
4818 $cmd .= " -i";
4841 system("$cmd < " . ShellEscape($main::tmpfile_sym));
[all …]
/redis-3.2.3/tests/unit/type/
H A Dzset.tcl616 foreach cmd {ZUNIONSTORE ZINTERSTORE} {
617 test "$cmd with +inf/-inf scores - $encoding" {
622 r $cmd zsetinf3 2 zsetinf1 zsetinf2
627 r $cmd zsetinf3 2 zsetinf1 zsetinf2
632 r $cmd zsetinf3 2 zsetinf1 zsetinf2
637 r $cmd zsetinf3 2 zsetinf1 zsetinf2
641 test "$cmd with NaN weights $encoding" {
647 r $cmd zsetinf3 2 zsetinf1 zsetinf2 weights nan nan
893 set cmd zrevrangebylex
895 set cmd zrangebylex
[all …]

12