| /redis-3.2.3/tests/ |
| H A D | instances.tcl | 209 } retval] 211 puts " -- $retval" 213 puts $retval 223 } retval] 225 puts " -- $retval" 227 puts $retval 240 set errcode [catch {eval $line} retval] 241 if {$retval ne {}} {puts "$retval"} 253 if {[catch {set retval [uplevel 1 $code]} error]} { 502 catch {[$link ping]} retval [all …]
|
| /redis-3.2.3/src/ |
| H A D | pubsub.c | 61 int retval = 0; in pubsubSubscribeChannel() local 65 retval = 1; in pubsubSubscribeChannel() 83 return retval; in pubsubSubscribeChannel() 92 int retval = 0; in pubsubUnsubscribeChannel() local 98 retval = 1; in pubsubUnsubscribeChannel() 123 return retval; in pubsubUnsubscribeChannel() 128 int retval = 0; in pubsubSubscribePattern() local 131 retval = 1; in pubsubSubscribePattern() 145 return retval; in pubsubSubscribePattern() 153 int retval = 0; in pubsubUnsubscribePattern() local [all …]
|
| H A D | ae_kqueue.c | 106 int retval, numevents = 0; in aeApiPoll() local 112 retval = kevent(state->kqfd, NULL, 0, state->events, eventLoop->setsize, in aeApiPoll() 115 retval = kevent(state->kqfd, NULL, 0, state->events, eventLoop->setsize, in aeApiPoll() 119 if (retval > 0) { in aeApiPoll() 122 numevents = retval; in aeApiPoll()
|
| H A D | rio.c | 110 size_t retval; in rioFileWrite() local 112 retval = fwrite(buf,len,1,r->io.file.fp); in rioFileWrite() 122 return retval; in rioFileWrite() 170 ssize_t retval; in rioFdsetWrite() local 205 retval = write(r->io.fdset.fds[j],p+nwritten,count-nwritten); in rioFdsetWrite() 206 if (retval <= 0) { in rioFdsetWrite() 211 if (retval == -1 && errno == EWOULDBLOCK) errno = ETIMEDOUT; in rioFdsetWrite() 214 nwritten += retval; in rioFdsetWrite()
|
| H A D | ae_epoll.c | 110 int retval, numevents = 0; in aeApiPoll() local 112 retval = epoll_wait(state->epfd,state->events,eventLoop->setsize, in aeApiPoll() 114 if (retval > 0) { in aeApiPoll() 117 numevents = retval; in aeApiPoll()
|
| H A D | ae_select.c | 79 int retval, j, numevents = 0; in aeApiPoll() local 84 retval = select(eventLoop->maxfd+1, in aeApiPoll() 86 if (retval > 0) { in aeApiPoll()
|
| H A D | ae.c | 319 int retval; in processTimeEvents() local 322 retval = te->timeProc(eventLoop, id, te->clientData); in processTimeEvents() 324 if (retval != AE_NOMORE) { in processTimeEvents() 325 aeAddMillisecondsToNow(retval,&te->when_sec,&te->when_ms); in processTimeEvents() 432 int retmask = 0, retval; in aeWait() local 439 if ((retval = poll(&pfd, 1, milliseconds))== 1) { in aeWait() 446 return retval; in aeWait()
|
| H A D | sentinel.c | 453 int retval; in initSentinel() local 2468 int retval; in sentinelSendHello() local 2564 int retval; in sentinelSendPeriodicCommands() local 3560 int retval; in sentinelAskMasterStateToOtherSentinels() local 3741 int retval; in sentinelSendSlaveOf() local 3764 if (retval == C_ERR) return retval; in sentinelSendSlaveOf() 3769 if (retval == C_ERR) return retval; in sentinelSendSlaveOf() 3774 if (retval == C_ERR) return retval; in sentinelSendSlaveOf() 3784 if (retval == C_ERR) return retval; in sentinelSendSlaveOf() 3789 if (retval == C_ERR) return retval; in sentinelSendSlaveOf() [all …]
|
| H A D | redis-check-rdb.c | 339 int retval = redis_check_rdb(argv[1]); in redis_check_rdb_main() local 340 if (retval == 0) { in redis_check_rdb_main() 344 exit(retval); in redis_check_rdb_main()
|
| H A D | bitops.c | 1011 int64_t oldval, newval, wrapped, retval; in bitfieldCommand() local 1022 retval = newval; in bitfieldCommand() 1028 retval = oldval; in bitfieldCommand() 1034 addReplyLongLong(c,retval); in bitfieldCommand() 1041 uint64_t oldval, newval, wrapped, retval; in bitfieldCommand() local 1052 retval = newval; in bitfieldCommand() 1058 retval = oldval; in bitfieldCommand() 1063 addReplyLongLong(c,retval); in bitfieldCommand()
|
| H A D | rdb.c | 929 int retval; in rdbSaveBackground() local 934 retval = rdbSave(filename); in rdbSaveBackground() 935 if (retval == C_OK) { in rdbSaveBackground() 944 exitFromChild((retval == C_OK) ? 0 : 1); in rdbSaveBackground() 1627 int retval; in rdbSaveToSlavesSockets() local 1636 retval = rdbSaveRioWithEOFMark(&slave_sockets,NULL); in rdbSaveToSlavesSockets() 1637 if (retval == C_OK && rioFlush(&slave_sockets) == 0) in rdbSaveToSlavesSockets() 1638 retval = C_ERR; in rdbSaveToSlavesSockets() 1640 if (retval == C_OK) { in rdbSaveToSlavesSockets() 1684 retval = C_ERR; in rdbSaveToSlavesSockets() [all …]
|
| H A D | replication.c | 510 int retval; in startBgsaveForReplication() local 519 retval = rdbSaveToSlavesSockets(); in startBgsaveForReplication() 521 retval = rdbSaveBackground(server.rdb_filename); in startBgsaveForReplication() 526 if (retval == C_ERR) { in startBgsaveForReplication() 540 return retval; in startBgsaveForReplication() 559 if (retval == C_OK) replicationScriptCacheFlush(); in startBgsaveForReplication() 560 return retval; in startBgsaveForReplication() 2058 int retval; in replicationScriptCacheAdd() local 2068 serverAssert(retval == DICT_OK); in replicationScriptCacheAdd() 2073 retval = dictAdd(server.repl_scriptcache_dict,key,NULL); in replicationScriptCacheAdd() [all …]
|
| H A D | config.c | 472 int retval; in loadServerConfigFromString() local 481 retval = dictDelete(server.commands, argv[1]); in loadServerConfigFromString() 482 serverAssert(retval == DICT_OK); in loadServerConfigFromString() 488 retval = dictAdd(server.commands, copy, cmd); in loadServerConfigFromString() 489 if (retval != DICT_OK) { in loadServerConfigFromString() 1716 int retval = 0; local 1743 retval = -1; 1757 return retval; 1771 int retval; local 1865 retval = rewriteConfigOverwriteFile(server.configfile,newcontent); [all …]
|
| H A D | cluster.c | 845 int retval; in clusterAddNode() local 847 retval = dictAdd(server.cluster->nodes, in clusterAddNode() 849 return (retval == DICT_OK) ? C_OK : C_ERR; in clusterAddNode() 908 int retval; in clusterRenameNode() local 913 retval = dictDelete(server.cluster->nodes, s); in clusterRenameNode() 915 serverAssert(retval == DICT_OK); in clusterRenameNode() 1118 int retval; in clusterBlacklistExists() local 1123 return retval; in clusterBlacklistExists() 3961 int retval; in clusterCommand() local 4133 int retval = clusterSaveConfig(1); in clusterCommand() local [all …]
|
| H A D | t_set.c | 695 int retval = DICT_ERR; in srandmemberWithCountCommand() local 698 retval = dictAdd(d,createStringObjectFromLongLong(llele),NULL); in srandmemberWithCountCommand() 700 retval = dictAdd(d,dupStringObject(ele),NULL); in srandmemberWithCountCommand() 702 serverAssert(retval == DICT_OK); in srandmemberWithCountCommand()
|
| H A D | redis-cli.c | 1359 int retval = 0; in noninteractive() local 1363 retval = issueCommand(argc+1, argv); in noninteractive() 1365 retval = issueCommand(argc, argv); in noninteractive() 1367 return retval; in noninteractive() 1381 int retval = REDIS_OK; in evalMode() local 1434 retval = issueCommand(argc+3-got_comma, argv2); in evalMode() 1454 return retval; in evalMode()
|
| H A D | t_list.c | 634 int retval; in blockForKeys() local 638 retval = dictAdd(c->db->blocking_keys,keys[j],l); in blockForKeys() 640 serverAssertWithInfo(c,keys[j],retval == DICT_OK); in blockForKeys()
|
| H A D | hyperloglog.c | 1173 int retval = hllAdd(o, (unsigned char*)c->argv[j]->ptr, in pfaddCommand() local 1175 switch(retval) { in pfaddCommand()
|
| H A D | db.c | 159 int retval = dictAdd(db->dict, copy, val); in dbAdd() local 161 serverAssertWithInfo(NULL,key,retval == DICT_OK); in dbAdd()
|
| H A D | scripting.c | 1173 int retval = dictAdd(server.lua_scripts, in luaCreateFunction() local 1175 serverAssertWithInfo(c,NULL,retval == DICT_OK); in luaCreateFunction()
|
| /redis-3.2.3/tests/support/ |
| H A D | test.tcl | 95 if {[catch {set retval [uplevel 1 $code]} error]} { 108 … if {$okpattern eq "undefined" || $okpattern eq $retval || [string match $okpattern $retval]} { 112 set msg "Expected '$okpattern' to equal or match '$retval'"
|
| H A D | server.tcl | 93 set retval 0 102 set retval 1 114 return $retval 122 set retval 0
|
| H A D | redis.tcl | 58 set errorcode [catch {::redis::__dispatch__raw__ $id $method $args} retval] 64 set errorcode [catch {::redis::__dispatch__raw__ $id $method $args} retval] 66 return -code $errorcode $retval
|
| /redis-3.2.3/tests/unit/ |
| H A D | protocol.tcl | 86 set retval [gets $s] 97 set retval
|
| /redis-3.2.3/tests/unit/type/ |
| H A D | zset.tcl | 68 set retval [r zadd ztmp 10 x 20 y 30 z] 69 assert {$retval == 2} 295 set retval [r zincrby ztmp 1.0 x] 296 assert {$retval == 1.0}
|