Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 48) sorted by relevance

12

/redis-3.2.3/src/
H A Dsort.c319 if (start >= vectorlen) { in sortCommand()
320 start = vectorlen-1; in sortCommand()
353 if (end >= start) { in sortCommand()
357 desc ? (long)(listTypeLength(sortval) - start - 1) : start, in sortCommand()
368 end -= start; in sortCommand()
369 start = 0; in sortCommand()
410 if (start > 0) in sortCommand()
414 if (start > 0) in sortCommand()
428 end -= start; in sortCommand()
429 start = 0; in sortCommand()
[all …]
H A Dbitops.c760 long start, end, strlen; in bitcountCommand() local
776 if (start < 0 && end < 0 && start > end) { in bitcountCommand()
780 if (start < 0) start = strlen+start; in bitcountCommand()
782 if (start < 0) start = 0; in bitcountCommand()
787 start = 0; in bitcountCommand()
797 if (start > end) { in bitcountCommand()
800 long bytes = end-start+1; in bitcountCommand()
845 if (start < 0) start = strlen+start; in bitposCommand()
847 if (start < 0) start = 0; in bitposCommand()
852 start = 0; in bitposCommand()
[all …]
H A Dsyncio.c51 long long start = mstime(); in syncWrite() local
72 elapsed = mstime() - start; in syncWrite()
87 long long start = mstime(); in syncRead() local
111 elapsed = mstime() - start; in syncRead()
H A Dsds.c687 sp = start = s; in sdstrim()
718 if (start < 0) { in sdsrange()
719 start = len+start; in sdsrange()
720 if (start < 0) start = 0; in sdsrange()
726 newlen = (start > end) ? 0 : (end-start)+1; in sdsrange()
732 newlen = (start > end) ? 0 : (end-start)+1; in sdsrange()
735 start = 0; in sdsrange()
737 if (start && newlen) memmove(s, s+start, newlen); in sdsrange()
820 tokens[elements] = sdsnewlen(s+start,j-start); in sdssplitlen()
823 start = j+seplen; in sdssplitlen()
[all …]
H A Dt_list.c391 long start, end, llen, rangelen; in lrangeCommand() local
393 if ((getLongFromObjectOrReply(c, c->argv[2], &start, NULL) != C_OK) || in lrangeCommand()
401 if (start < 0) start = llen+start; in lrangeCommand()
403 if (start < 0) start = 0; in lrangeCommand()
407 if (start > end || start >= llen) { in lrangeCommand()
412 rangelen = (end-start)+1; in lrangeCommand()
437 long start, end, llen, ltrim, rtrim; in ltrimCommand() local
447 if (start < 0) start = llen+start; in ltrimCommand()
449 if (start < 0) start = 0; in ltrimCommand()
453 if (start > end || start >= llen) { in ltrimCommand()
[all …]
H A Dt_string.c246 long long start, end; in getrangeCommand() local
250 if (getLongLongFromObjectOrReply(c,c->argv[2],&start,NULL) != C_OK) in getrangeCommand()
266 if (start < 0 && end < 0 && start > end) { in getrangeCommand()
270 if (start < 0) start = strlen+start; in getrangeCommand()
272 if (start < 0) start = 0; in getrangeCommand()
278 if (start > end || strlen == 0) { in getrangeCommand()
281 addReplyBulkCBuffer(c,(char*)str+start,end-start+1); in getrangeCommand()
H A Dutil.c99 int start = pattern[0]; in stringmatchlen() local
102 if (start > end) { in stringmatchlen()
103 int t = start; in stringmatchlen()
104 start = end; in stringmatchlen()
108 start = tolower(start); in stringmatchlen()
114 if (c >= start && c <= end) in stringmatchlen()
H A Dt_zset.c1482 long start, end, llen; in zremrangeGenericCommand() local
1508 if (start < 0) start = llen+start; in zremrangeGenericCommand()
1510 if (start < 0) start = 0; in zremrangeGenericCommand()
1514 if (start > end || start >= llen) { in zremrangeGenericCommand()
2186 long start; in zrangeGenericCommand() local
2206 if (start < 0) start = llen+start; in zrangeGenericCommand()
2208 if (start < 0) start = 0; in zrangeGenericCommand()
2212 if (start > end || start >= llen) { in zrangeGenericCommand()
2217 rangelen = (end-start)+1; in zrangeGenericCommand()
2263 if (start > 0) in zrangeGenericCommand()
[all …]
H A Dredis-benchmark.c69 long long start; member
91 long long start; /* Start time of a request */ member
199 if (c->latency < 0) c->latency = ustime()-(c->start); in readHandler()
274 c->start = ustime(); in writeHandler()
471 config.start = mstime(); in benchmark()
473 config.totlatency = mstime()-config.start; in benchmark()
627 float dt = (float)(mstime()-config.start)/1000.0; in showThroughput()
H A Dcluster.c224 int start, stop; in clusterLoadConfig() local
251 start = atoi(argv[j]); in clusterLoadConfig()
256 while(start <= stop) clusterAddSlot(n, start++); in clusterLoadConfig()
3696 int j, start; in clusterGenNodeDescription() local
3723 start = -1; in clusterGenNodeDescription()
3728 if (start == -1) start = j; in clusterGenNodeDescription()
3733 if (start == j-1) { in clusterGenNodeDescription()
3738 start = -1; in clusterGenNodeDescription()
3825 int j = 0, start = -1; in clusterReplyMultiBulkSlots() local
3835 if (start == -1) start = j; in clusterReplyMultiBulkSlots()
[all …]
H A Dquicklist.c958 int quicklistDelRange(quicklist *quicklist, const long start, in quicklistDelRange() argument
965 if (start >= 0 && extent > (quicklist->count - start)) { in quicklistDelRange()
967 extent = quicklist->count - start; in quicklistDelRange()
968 } else if (start < 0 && extent > (unsigned long)(-start)) { in quicklistDelRange()
970 extent = -start; /* c.f. LREM -29 29; just delete until end. */ in quicklistDelRange()
974 if (!quicklistIndex(quicklist, start, &entry)) in quicklistDelRange()
977 D("Quicklist delete request for start %ld, count %ld, extent: %ld", start, in quicklistDelRange()
1628 long long start = mstime(); in quicklistTest() local
2585 runtime[_i] = stop - start; in quicklistTest()
2590 long long start = mstime(); in quicklistTest() local
[all …]
/redis-3.2.3/deps/jemalloc/test/unit/
H A Drb.c291 node_t *start; in TEST_BEGIN() local
294 start = NULL; in TEST_BEGIN()
296 start = tree_iter(&tree, start, in TEST_BEGIN()
299 } while (start != NULL); in TEST_BEGIN()
304 node_t *start; in TEST_BEGIN() local
307 start = NULL; in TEST_BEGIN()
309 start = tree_reverse_iter(&tree, start, in TEST_BEGIN()
313 } while (start != NULL); in TEST_BEGIN()
/redis-3.2.3/deps/hiredis/
H A Dsds.c687 sp = start = s; in sdstrim()
718 if (start < 0) { in sdsrange()
719 start = len+start; in sdsrange()
720 if (start < 0) start = 0; in sdsrange()
726 newlen = (start > end) ? 0 : (end-start)+1; in sdsrange()
732 newlen = (start > end) ? 0 : (end-start)+1; in sdsrange()
735 start = 0; in sdsrange()
737 if (start && newlen) memmove(s, s+start, newlen); in sdsrange()
820 tokens[elements] = sdsnewlen(s+start,j-start); in sdssplitlen()
823 start = j+seplen; in sdssplitlen()
[all …]
/redis-3.2.3/utils/
H A Dredis_init_script.tpl3 start)
39 $0 start
42 echo "Please use start, stop, restart or status as first argument"
H A Dredis_init_script14 start)
H A Dcluster_fail_time.tcl28 set start [clock milliseconds]
/redis-3.2.3/utils/create-cluster/
H A DREADME1 Create-custer is a small script used to easily start a big number of Redis
15 1. Edit create-cluster and change the start / end port, depending on the
17 2. Use "./create-cluster start" in order to run the instances.
24 … instances. After you stopped the instances you can use "./create-cluster start" to restart them i…
/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Drb.h185 a_prefix##reverse_iter(a_rbt_type *rbtree, a_type *start, \
885 int cmp = a_cmp(start, node); \
888 if ((ret = a_prefix##iter_start(rbtree, start, \
896 return (a_prefix##iter_start(rbtree, start, \
911 if (start != NULL) { \
942 int cmp = a_cmp(start, node); \
945 if ((ret = a_prefix##reverse_iter_start(rbtree, start, \
953 return (a_prefix##reverse_iter_start(rbtree, start, \
965 a_prefix##reverse_iter(a_rbt_type *rbtree, a_type *start, \
968 if (start != NULL) { \
[all …]
/redis-3.2.3/tests/unit/
H A Dsort.tcl271 set start [clock clicks -milliseconds]
275 set elapsed [expr [clock clicks -milliseconds]-$start]
283 set start [clock clicks -milliseconds]
287 set elapsed [expr [clock clicks -milliseconds]-$start]
295 set start [clock clicks -milliseconds]
299 set elapsed [expr [clock clicks -milliseconds]-$start]
307 set start [clock clicks -milliseconds]
311 set elapsed [expr [clock clicks -milliseconds]-$start]
H A Dbitops.tcl51 test {BITCOUNT returns 0 with negative indexes where start > end} {
78 set start [randomInt $l]
80 if {$start > $end} {
81 lassign [list $end $start] start end
83 assert {[r bitcount str $start $end] == [count_bits [string range $str $start $end]]}
/redis-3.2.3/tests/integration/
H A Drdb.tcl66 test {Server should not start if RDB file can't be open} {
90 test {Server should not start if RDB is corrupted} {
/redis-3.2.3/tests/support/
H A Dutil.tcl320 proc find_available_port start { argument
321 for {set j $start} {$j < $start+1024} {incr j} {
333 error "Can't find a non busy port in the $start-[expr {$start+1023}] range."
H A Dcluster.tcl137 lassign [split $slotrange -] start end
138 if {$end == {}} {set end $start}
139 for {set j $start} {$j <= $end} {incr j} {
/redis-3.2.3/deps/lua/src/
H A Dlstrlib.c46 ptrdiff_t start = posrelat(luaL_checkinteger(L, 2), l); in str_sub() local
48 if (start < 1) start = 1; in str_sub()
50 if (start <= end) in str_sub()
51 lua_pushlstring(L, s+start-1, end-start+1); in str_sub()
/redis-3.2.3/deps/linenoise/
H A Dlinenoise.c291 int start, cols; in getColumns() local
294 start = getCursorPosition(ifd,ofd); in getColumns()
295 if (start == -1) goto failed; in getColumns()
303 if (cols > start) { in getColumns()
305 snprintf(seq,32,"\x1b[%dD",cols-start); in getColumns()

12