2017-03-27 09:26:56 -04:00
|
|
|
/* Rax -- A radix tree implementation.
|
|
|
|
*
|
2020-05-14 05:17:47 -04:00
|
|
|
* Version 1.2 -- 7 February 2019
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017-2019, Salvatore Sanfilippo <antirez at gmail dot com>
|
2017-03-27 09:26:56 -04:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
*
|
|
|
|
* * Redistributions of source code must retain the above copyright notice,
|
|
|
|
* this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* * Neither the name of Redis nor the names of its contributors may be used
|
|
|
|
* to endorse or promote products derived from this software without
|
|
|
|
* specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
|
|
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <errno.h>
|
2017-04-07 02:46:39 -04:00
|
|
|
#include <math.h>
|
2017-03-27 09:26:56 -04:00
|
|
|
#include "rax.h"
|
2017-04-07 02:46:39 -04:00
|
|
|
|
|
|
|
#ifndef RAX_MALLOC_INCLUDE
|
|
|
|
#define RAX_MALLOC_INCLUDE "rax_malloc.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include RAX_MALLOC_INCLUDE
|
2017-03-27 09:26:56 -04:00
|
|
|
|
|
|
|
/* This is a special pointer that is guaranteed to never have the same value
|
|
|
|
* of a radix tree node. It's used in order to report "not found" error without
|
|
|
|
* requiring the function to have multiple return values. */
|
|
|
|
void *raxNotFound = (void*)"rax-not-found-pointer";
|
|
|
|
|
|
|
|
/* -------------------------------- Debugging ------------------------------ */
|
|
|
|
|
|
|
|
void raxDebugShowNode(const char *msg, raxNode *n);
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* Turn debugging messages on/off by compiling with RAX_DEBUG_MSG macro on.
|
|
|
|
* When RAX_DEBUG_MSG is defined by default Rax operations will emit a lot
|
|
|
|
* of debugging info to the standard output, however you can still turn
|
|
|
|
* debugging on/off in order to enable it only when you suspect there is an
|
|
|
|
* operation causing a bug using the function raxSetDebugMsg(). */
|
|
|
|
#ifdef RAX_DEBUG_MSG
|
2017-03-27 09:26:56 -04:00
|
|
|
#define debugf(...) \
|
2018-10-13 08:17:32 -04:00
|
|
|
if (raxDebugMsg) { \
|
2017-03-27 09:26:56 -04:00
|
|
|
printf("%s:%s:%d:\t", __FILE__, __FUNCTION__, __LINE__); \
|
|
|
|
printf(__VA_ARGS__); \
|
|
|
|
fflush(stdout); \
|
2018-10-13 08:17:32 -04:00
|
|
|
}
|
2017-03-27 09:26:56 -04:00
|
|
|
|
|
|
|
#define debugnode(msg,n) raxDebugShowNode(msg,n)
|
|
|
|
#else
|
|
|
|
#define debugf(...)
|
|
|
|
#define debugnode(msg,n)
|
|
|
|
#endif
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* By default log debug info if RAX_DEBUG_MSG is defined. */
|
|
|
|
static int raxDebugMsg = 1;
|
|
|
|
|
|
|
|
/* When debug messages are enabled, turn them on/off dynamically. By
|
|
|
|
* default they are enabled. Set the state to 0 to disable, and 1 to
|
|
|
|
* re-enable. */
|
|
|
|
void raxSetDebugMsg(int onoff) {
|
|
|
|
raxDebugMsg = onoff;
|
|
|
|
}
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* ------------------------- raxStack functions --------------------------
|
|
|
|
* The raxStack is a simple stack of pointers that is capable of switching
|
|
|
|
* from using a stack-allocated array to dynamic heap once a given number of
|
|
|
|
* items are reached. It is used in order to retain the list of parent nodes
|
|
|
|
* while walking the radix tree in order to implement certain operations that
|
|
|
|
* need to navigate the tree upward.
|
|
|
|
* ------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* Initialize the stack. */
|
|
|
|
static inline void raxStackInit(raxStack *ts) {
|
|
|
|
ts->stack = ts->static_items;
|
|
|
|
ts->items = 0;
|
|
|
|
ts->maxitems = RAX_STACK_STATIC_ITEMS;
|
|
|
|
ts->oom = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Push an item into the stack, returns 1 on success, 0 on out of memory. */
|
|
|
|
static inline int raxStackPush(raxStack *ts, void *ptr) {
|
|
|
|
if (ts->items == ts->maxitems) {
|
|
|
|
if (ts->stack == ts->static_items) {
|
|
|
|
ts->stack = rax_malloc(sizeof(void*)*ts->maxitems*2);
|
|
|
|
if (ts->stack == NULL) {
|
|
|
|
ts->stack = ts->static_items;
|
|
|
|
ts->oom = 1;
|
2017-04-07 02:46:39 -04:00
|
|
|
errno = ENOMEM;
|
2017-03-27 09:26:56 -04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
memcpy(ts->stack,ts->static_items,sizeof(void*)*ts->maxitems);
|
|
|
|
} else {
|
|
|
|
void **newalloc = rax_realloc(ts->stack,sizeof(void*)*ts->maxitems*2);
|
|
|
|
if (newalloc == NULL) {
|
|
|
|
ts->oom = 1;
|
2017-04-07 02:46:39 -04:00
|
|
|
errno = ENOMEM;
|
2017-03-27 09:26:56 -04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
ts->stack = newalloc;
|
|
|
|
}
|
|
|
|
ts->maxitems *= 2;
|
|
|
|
}
|
|
|
|
ts->stack[ts->items] = ptr;
|
|
|
|
ts->items++;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Pop an item from the stack, the function returns NULL if there are no
|
|
|
|
* items to pop. */
|
|
|
|
static inline void *raxStackPop(raxStack *ts) {
|
|
|
|
if (ts->items == 0) return NULL;
|
|
|
|
ts->items--;
|
|
|
|
return ts->stack[ts->items];
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return the stack item at the top of the stack without actually consuming
|
|
|
|
* it. */
|
|
|
|
static inline void *raxStackPeek(raxStack *ts) {
|
|
|
|
if (ts->items == 0) return NULL;
|
|
|
|
return ts->stack[ts->items-1];
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Free the stack in case we used heap allocation. */
|
|
|
|
static inline void raxStackFree(raxStack *ts) {
|
|
|
|
if (ts->stack != ts->static_items) rax_free(ts->stack);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
2017-08-30 06:40:27 -04:00
|
|
|
* Radix tree implementation
|
2017-03-27 09:26:56 -04:00
|
|
|
* --------------------------------------------------------------------------*/
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* Return the padding needed in the characters section of a node having size
|
|
|
|
* 'nodesize'. The padding is needed to store the child pointers to aligned
|
|
|
|
* addresses. Note that we add 4 to the node size because the node has a four
|
|
|
|
* bytes header. */
|
|
|
|
#define raxPadding(nodesize) ((sizeof(void*)-((nodesize+4) % sizeof(void*))) & (sizeof(void*)-1))
|
|
|
|
|
|
|
|
/* Return the pointer to the last child pointer in a node. For the compressed
|
|
|
|
* nodes this is the only child pointer. */
|
|
|
|
#define raxNodeLastChildPtr(n) ((raxNode**) ( \
|
|
|
|
((char*)(n)) + \
|
|
|
|
raxNodeCurrentLength(n) - \
|
|
|
|
sizeof(raxNode*) - \
|
|
|
|
(((n)->iskey && !(n)->isnull) ? sizeof(void*) : 0) \
|
|
|
|
))
|
|
|
|
|
|
|
|
/* Return the pointer to the first child pointer. */
|
|
|
|
#define raxNodeFirstChildPtr(n) ((raxNode**) ( \
|
|
|
|
(n)->data + \
|
|
|
|
(n)->size + \
|
|
|
|
raxPadding((n)->size)))
|
|
|
|
|
|
|
|
/* Return the current total size of the node. Note that the second line
|
|
|
|
* computes the padding after the string of characters, needed in order to
|
|
|
|
* save pointers to aligned addresses. */
|
|
|
|
#define raxNodeCurrentLength(n) ( \
|
|
|
|
sizeof(raxNode)+(n)->size+ \
|
|
|
|
raxPadding((n)->size)+ \
|
|
|
|
((n)->iscompr ? sizeof(raxNode*) : sizeof(raxNode*)*(n)->size)+ \
|
|
|
|
(((n)->iskey && !(n)->isnull)*sizeof(void*)) \
|
|
|
|
)
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* Allocate a new non compressed node with the specified number of children.
|
|
|
|
* If datafiled is true, the allocation is made large enough to hold the
|
|
|
|
* associated data pointer.
|
|
|
|
* Returns the new node pointer. On out of memory NULL is returned. */
|
|
|
|
raxNode *raxNewNode(size_t children, int datafield) {
|
2018-10-13 08:17:32 -04:00
|
|
|
size_t nodesize = sizeof(raxNode)+children+raxPadding(children)+
|
2017-03-27 09:26:56 -04:00
|
|
|
sizeof(raxNode*)*children;
|
|
|
|
if (datafield) nodesize += sizeof(void*);
|
|
|
|
raxNode *node = rax_malloc(nodesize);
|
|
|
|
if (node == NULL) return NULL;
|
|
|
|
node->iskey = 0;
|
|
|
|
node->isnull = 0;
|
|
|
|
node->iscompr = 0;
|
|
|
|
node->size = children;
|
|
|
|
return node;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Allocate a new rax and return its pointer. On out of memory the function
|
|
|
|
* returns NULL. */
|
|
|
|
rax *raxNew(void) {
|
|
|
|
rax *rax = rax_malloc(sizeof(*rax));
|
|
|
|
if (rax == NULL) return NULL;
|
|
|
|
rax->numele = 0;
|
|
|
|
rax->numnodes = 1;
|
|
|
|
rax->head = raxNewNode(0,0);
|
|
|
|
if (rax->head == NULL) {
|
|
|
|
rax_free(rax);
|
|
|
|
return NULL;
|
|
|
|
} else {
|
|
|
|
return rax;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* realloc the node to make room for auxiliary data in order
|
|
|
|
* to store an item in that node. On out of memory NULL is returned. */
|
|
|
|
raxNode *raxReallocForData(raxNode *n, void *data) {
|
|
|
|
if (data == NULL) return n; /* No reallocation needed, setting isnull=1 */
|
|
|
|
size_t curlen = raxNodeCurrentLength(n);
|
|
|
|
return rax_realloc(n,curlen+sizeof(void*));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Set the node auxiliary data to the specified pointer. */
|
|
|
|
void raxSetData(raxNode *n, void *data) {
|
|
|
|
n->iskey = 1;
|
|
|
|
if (data != NULL) {
|
2017-04-08 11:31:09 -04:00
|
|
|
n->isnull = 0;
|
2017-03-27 09:26:56 -04:00
|
|
|
void **ndata = (void**)
|
|
|
|
((char*)n+raxNodeCurrentLength(n)-sizeof(void*));
|
|
|
|
memcpy(ndata,&data,sizeof(data));
|
|
|
|
} else {
|
|
|
|
n->isnull = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Get the node auxiliary data. */
|
|
|
|
void *raxGetData(raxNode *n) {
|
|
|
|
if (n->isnull) return NULL;
|
|
|
|
void **ndata =(void**)((char*)n+raxNodeCurrentLength(n)-sizeof(void*));
|
|
|
|
void *data;
|
|
|
|
memcpy(&data,ndata,sizeof(data));
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Add a new child to the node 'n' representing the character 'c' and return
|
|
|
|
* its new pointer, as well as the child pointer by reference. Additionally
|
|
|
|
* '***parentlink' is populated with the raxNode pointer-to-pointer of where
|
|
|
|
* the new child was stored, which is useful for the caller to replace the
|
|
|
|
* child pointer if it gets reallocated.
|
|
|
|
*
|
|
|
|
* On success the new parent node pointer is returned (it may change because
|
|
|
|
* of the realloc, so the caller should discard 'n' and use the new value).
|
|
|
|
* On out of memory NULL is returned, and the old node is still valid. */
|
2017-04-07 02:46:39 -04:00
|
|
|
raxNode *raxAddChild(raxNode *n, unsigned char c, raxNode **childptr, raxNode ***parentlink) {
|
2017-03-27 09:26:56 -04:00
|
|
|
assert(n->iscompr == 0);
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
size_t curlen = raxNodeCurrentLength(n);
|
|
|
|
n->size++;
|
|
|
|
size_t newlen = raxNodeCurrentLength(n);
|
|
|
|
n->size--; /* For now restore the orignal size. We'll update it only on
|
|
|
|
success at the end. */
|
2017-03-27 09:26:56 -04:00
|
|
|
|
|
|
|
/* Alloc the new child we will link to 'n'. */
|
|
|
|
raxNode *child = raxNewNode(0,0);
|
|
|
|
if (child == NULL) return NULL;
|
|
|
|
|
|
|
|
/* Make space in the original node. */
|
|
|
|
raxNode *newn = rax_realloc(n,newlen);
|
|
|
|
if (newn == NULL) {
|
|
|
|
rax_free(child);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
n = newn;
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* After the reallocation, we have up to 8/16 (depending on the system
|
|
|
|
* pointer size, and the required node padding) bytes at the end, that is,
|
|
|
|
* the additional char in the 'data' section, plus one pointer to the new
|
|
|
|
* child, plus the padding needed in order to store addresses into aligned
|
|
|
|
* locations.
|
|
|
|
*
|
|
|
|
* So if we start with the following node, having "abde" edges.
|
|
|
|
*
|
|
|
|
* Note:
|
|
|
|
* - We assume 4 bytes pointer for simplicity.
|
|
|
|
* - Each space below corresponds to one byte
|
|
|
|
*
|
|
|
|
* [HDR*][abde][Aptr][Bptr][Dptr][Eptr]|AUXP|
|
2017-03-27 09:26:56 -04:00
|
|
|
*
|
2018-10-13 08:17:32 -04:00
|
|
|
* After the reallocation we need: 1 byte for the new edge character
|
|
|
|
* plus 4 bytes for a new child pointer (assuming 32 bit machine).
|
|
|
|
* However after adding 1 byte to the edge char, the header + the edge
|
|
|
|
* characters are no longer aligned, so we also need 3 bytes of padding.
|
|
|
|
* In total the reallocation will add 1+4+3 bytes = 8 bytes:
|
|
|
|
*
|
|
|
|
* (Blank bytes are represented by ".")
|
|
|
|
*
|
|
|
|
* [HDR*][abde][Aptr][Bptr][Dptr][Eptr]|AUXP|[....][....]
|
2017-03-27 09:26:56 -04:00
|
|
|
*
|
|
|
|
* Let's find where to insert the new child in order to make sure
|
2018-10-13 08:17:32 -04:00
|
|
|
* it is inserted in-place lexicographically. Assuming we are adding
|
|
|
|
* a child "c" in our case pos will be = 2 after the end of the following
|
|
|
|
* loop. */
|
2017-03-27 09:26:56 -04:00
|
|
|
int pos;
|
|
|
|
for (pos = 0; pos < n->size; pos++) {
|
|
|
|
if (n->data[pos] > c) break;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Now, if present, move auxiliary data pointer at the end
|
|
|
|
* so that we can mess with the other data without overwriting it.
|
|
|
|
* We will obtain something like that:
|
|
|
|
*
|
2018-10-13 08:17:32 -04:00
|
|
|
* [HDR*][abde][Aptr][Bptr][Dptr][Eptr][....][....]|AUXP|
|
|
|
|
*/
|
|
|
|
unsigned char *src, *dst;
|
2017-03-27 09:26:56 -04:00
|
|
|
if (n->iskey && !n->isnull) {
|
2018-10-13 08:17:32 -04:00
|
|
|
src = ((unsigned char*)n+curlen-sizeof(void*));
|
|
|
|
dst = ((unsigned char*)n+newlen-sizeof(void*));
|
|
|
|
memmove(dst,src,sizeof(void*));
|
2017-03-27 09:26:56 -04:00
|
|
|
}
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* Compute the "shift", that is, how many bytes we need to move the
|
|
|
|
* pointers section forward because of the addition of the new child
|
|
|
|
* byte in the string section. Note that if we had no padding, that
|
|
|
|
* would be always "1", since we are adding a single byte in the string
|
|
|
|
* section of the node (where now there is "abde" basically).
|
|
|
|
*
|
|
|
|
* However we have padding, so it could be zero, or up to 8.
|
|
|
|
*
|
|
|
|
* Another way to think at the shift is, how many bytes we need to
|
|
|
|
* move child pointers forward *other than* the obvious sizeof(void*)
|
|
|
|
* needed for the additional pointer itself. */
|
|
|
|
size_t shift = newlen - curlen - sizeof(void*);
|
|
|
|
|
|
|
|
/* We said we are adding a node with edge 'c'. The insertion
|
|
|
|
* point is between 'b' and 'd', so the 'pos' variable value is
|
|
|
|
* the index of the first child pointer that we need to move forward
|
|
|
|
* to make space for our new pointer.
|
|
|
|
*
|
2017-03-27 09:26:56 -04:00
|
|
|
* To start, move all the child pointers after the insertion point
|
2018-10-13 08:17:32 -04:00
|
|
|
* of shift+sizeof(pointer) bytes on the right, to obtain:
|
2017-03-27 09:26:56 -04:00
|
|
|
*
|
2018-10-13 08:17:32 -04:00
|
|
|
* [HDR*][abde][Aptr][Bptr][....][....][Dptr][Eptr]|AUXP|
|
|
|
|
*/
|
|
|
|
src = n->data+n->size+
|
|
|
|
raxPadding(n->size)+
|
|
|
|
sizeof(raxNode*)*pos;
|
|
|
|
memmove(src+shift+sizeof(raxNode*),src,sizeof(raxNode*)*(n->size-pos));
|
|
|
|
|
|
|
|
/* Move the pointers to the left of the insertion position as well. Often
|
|
|
|
* we don't need to do anything if there was already some padding to use. In
|
|
|
|
* that case the final destination of the pointers will be the same, however
|
|
|
|
* in our example there was no pre-existing padding, so we added one byte
|
|
|
|
* plus thre bytes of padding. After the next memmove() things will look
|
|
|
|
* like thata:
|
|
|
|
*
|
|
|
|
* [HDR*][abde][....][Aptr][Bptr][....][Dptr][Eptr]|AUXP|
|
|
|
|
*/
|
|
|
|
if (shift) {
|
|
|
|
src = (unsigned char*) raxNodeFirstChildPtr(n);
|
|
|
|
memmove(src+shift,src,sizeof(raxNode*)*pos);
|
|
|
|
}
|
2017-03-27 09:26:56 -04:00
|
|
|
|
|
|
|
/* Now make the space for the additional char in the data section,
|
2018-10-13 08:17:32 -04:00
|
|
|
* but also move the pointers before the insertion point to the right
|
|
|
|
* by shift bytes, in order to obtain the following:
|
2017-03-27 09:26:56 -04:00
|
|
|
*
|
2018-10-13 08:17:32 -04:00
|
|
|
* [HDR*][ab.d][e...][Aptr][Bptr][....][Dptr][Eptr]|AUXP|
|
|
|
|
*/
|
2017-03-27 09:26:56 -04:00
|
|
|
src = n->data+pos;
|
2018-10-13 08:17:32 -04:00
|
|
|
memmove(src+1,src,n->size-pos);
|
2017-03-27 09:26:56 -04:00
|
|
|
|
|
|
|
/* We can now set the character and its child node pointer to get:
|
|
|
|
*
|
2018-10-13 08:17:32 -04:00
|
|
|
* [HDR*][abcd][e...][Aptr][Bptr][....][Dptr][Eptr]|AUXP|
|
|
|
|
* [HDR*][abcd][e...][Aptr][Bptr][Cptr][Dptr][Eptr]|AUXP|
|
|
|
|
*/
|
2017-03-27 09:26:56 -04:00
|
|
|
n->data[pos] = c;
|
|
|
|
n->size++;
|
2018-10-13 08:17:32 -04:00
|
|
|
src = (unsigned char*) raxNodeFirstChildPtr(n);
|
|
|
|
raxNode **childfield = (raxNode**)(src+sizeof(raxNode*)*pos);
|
2017-03-27 09:26:56 -04:00
|
|
|
memcpy(childfield,&child,sizeof(child));
|
|
|
|
*childptr = child;
|
|
|
|
*parentlink = childfield;
|
|
|
|
return n;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Turn the node 'n', that must be a node without any children, into a
|
|
|
|
* compressed node representing a set of nodes linked one after the other
|
|
|
|
* and having exactly one child each. The node can be a key or not: this
|
|
|
|
* property and the associated value if any will be preserved.
|
|
|
|
*
|
|
|
|
* The function also returns a child node, since the last node of the
|
|
|
|
* compressed chain cannot be part of the chain: it has zero children while
|
|
|
|
* we can only compress inner nodes with exactly one child each. */
|
|
|
|
raxNode *raxCompressNode(raxNode *n, unsigned char *s, size_t len, raxNode **child) {
|
|
|
|
assert(n->size == 0 && n->iscompr == 0);
|
|
|
|
void *data = NULL; /* Initialized only to avoid warnings. */
|
|
|
|
size_t newsize;
|
|
|
|
|
|
|
|
debugf("Compress node: %.*s\n", (int)len,s);
|
|
|
|
|
|
|
|
/* Allocate the child to link to this node. */
|
|
|
|
*child = raxNewNode(0,0);
|
|
|
|
if (*child == NULL) return NULL;
|
|
|
|
|
|
|
|
/* Make space in the parent node. */
|
2018-10-13 08:17:32 -04:00
|
|
|
newsize = sizeof(raxNode)+len+raxPadding(len)+sizeof(raxNode*);
|
2017-03-27 09:26:56 -04:00
|
|
|
if (n->iskey) {
|
|
|
|
data = raxGetData(n); /* To restore it later. */
|
|
|
|
if (!n->isnull) newsize += sizeof(void*);
|
|
|
|
}
|
|
|
|
raxNode *newn = rax_realloc(n,newsize);
|
|
|
|
if (newn == NULL) {
|
|
|
|
rax_free(*child);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
n = newn;
|
|
|
|
|
|
|
|
n->iscompr = 1;
|
|
|
|
n->size = len;
|
|
|
|
memcpy(n->data,s,len);
|
|
|
|
if (n->iskey) raxSetData(n,data);
|
|
|
|
raxNode **childfield = raxNodeLastChildPtr(n);
|
2017-04-07 02:46:39 -04:00
|
|
|
memcpy(childfield,child,sizeof(*child));
|
2017-03-27 09:26:56 -04:00
|
|
|
return n;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Low level function that walks the tree looking for the string
|
|
|
|
* 's' of 'len' bytes. The function returns the number of characters
|
|
|
|
* of the key that was possible to process: if the returned integer
|
|
|
|
* is the same as 'len', then it means that the node corresponding to the
|
|
|
|
* string was found (however it may not be a key in case the node->iskey is
|
|
|
|
* zero or if simply we stopped in the middle of a compressed node, so that
|
|
|
|
* 'splitpos' is non zero).
|
|
|
|
*
|
|
|
|
* Otherwise if the returned integer is not the same as 'len', there was an
|
|
|
|
* early stop during the tree walk because of a character mismatch.
|
|
|
|
*
|
|
|
|
* The node where the search ended (because the full string was processed
|
|
|
|
* or because there was an early stop) is returned by reference as
|
|
|
|
* '*stopnode' if the passed pointer is not NULL. This node link in the
|
|
|
|
* parent's node is returned as '*plink' if not NULL. Finally, if the
|
|
|
|
* search stopped in a compressed node, '*splitpos' returns the index
|
|
|
|
* inside the compressed node where the search ended. This is useful to
|
2018-06-04 11:26:16 -04:00
|
|
|
* know where to split the node for insertion.
|
|
|
|
*
|
|
|
|
* Note that when we stop in the middle of a compressed node with
|
|
|
|
* a perfect match, this function will return a length equal to the
|
|
|
|
* 'len' argument (all the key matched), and will return a *splitpos which is
|
|
|
|
* always positive (that will represent the index of the character immediately
|
|
|
|
* *after* the last match in the current compressed node).
|
|
|
|
*
|
|
|
|
* When instead we stop at a compressed node and *splitpos is zero, it
|
|
|
|
* means that the current node represents the key (that is, none of the
|
|
|
|
* compressed node characters are needed to represent the key, just all
|
|
|
|
* its parents nodes). */
|
2017-03-27 09:26:56 -04:00
|
|
|
static inline size_t raxLowWalk(rax *rax, unsigned char *s, size_t len, raxNode **stopnode, raxNode ***plink, int *splitpos, raxStack *ts) {
|
|
|
|
raxNode *h = rax->head;
|
|
|
|
raxNode **parentlink = &rax->head;
|
|
|
|
|
|
|
|
size_t i = 0; /* Position in the string. */
|
|
|
|
size_t j = 0; /* Position in the node children (or bytes if compressed).*/
|
|
|
|
while(h->size && i < len) {
|
|
|
|
debugnode("Lookup current node",h);
|
|
|
|
unsigned char *v = h->data;
|
|
|
|
|
|
|
|
if (h->iscompr) {
|
|
|
|
for (j = 0; j < h->size && i < len; j++, i++) {
|
|
|
|
if (v[j] != s[i]) break;
|
|
|
|
}
|
|
|
|
if (j != h->size) break;
|
|
|
|
} else {
|
|
|
|
/* Even when h->size is large, linear scan provides good
|
|
|
|
* performances compared to other approaches that are in theory
|
|
|
|
* more sounding, like performing a binary search. */
|
|
|
|
for (j = 0; j < h->size; j++) {
|
|
|
|
if (v[j] == s[i]) break;
|
|
|
|
}
|
|
|
|
if (j == h->size) break;
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ts) raxStackPush(ts,h); /* Save stack of parent nodes. */
|
|
|
|
raxNode **children = raxNodeFirstChildPtr(h);
|
|
|
|
if (h->iscompr) j = 0; /* Compressed node only child is at index 0. */
|
|
|
|
memcpy(&h,children+j,sizeof(h));
|
|
|
|
parentlink = children+j;
|
2020-06-18 05:28:26 -04:00
|
|
|
j = 0; /* If the new node is non compressed and we do not
|
|
|
|
iterate again (since i == len) set the split
|
2017-03-27 09:26:56 -04:00
|
|
|
position to 0 to signal this node represents
|
|
|
|
the searched key. */
|
|
|
|
}
|
2017-04-08 11:31:09 -04:00
|
|
|
debugnode("Lookup stop node is",h);
|
2017-03-27 09:26:56 -04:00
|
|
|
if (stopnode) *stopnode = h;
|
|
|
|
if (plink) *plink = parentlink;
|
|
|
|
if (splitpos && h->iscompr) *splitpos = j;
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Insert the element 's' of size 'len', setting as auxiliary data
|
|
|
|
* the pointer 'data'. If the element is already present, the associated
|
2018-06-04 11:26:16 -04:00
|
|
|
* data is updated (only if 'overwrite' is set to 1), and 0 is returned,
|
|
|
|
* otherwise the element is inserted and 1 is returned. On out of memory the
|
|
|
|
* function returns 0 as well but sets errno to ENOMEM, otherwise errno will
|
|
|
|
* be set to 0.
|
|
|
|
*/
|
|
|
|
int raxGenericInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old, int overwrite) {
|
2017-03-27 09:26:56 -04:00
|
|
|
size_t i;
|
|
|
|
int j = 0; /* Split position. If raxLowWalk() stops in a compressed
|
|
|
|
node, the index 'j' represents the char we stopped within the
|
|
|
|
compressed node, that is, the position where to split the
|
|
|
|
node for insertion. */
|
|
|
|
raxNode *h, **parentlink;
|
|
|
|
|
|
|
|
debugf("### Insert %.*s with value %p\n", (int)len, s, data);
|
|
|
|
i = raxLowWalk(rax,s,len,&h,&parentlink,&j,NULL);
|
|
|
|
|
|
|
|
/* If i == len we walked following the whole string. If we are not
|
|
|
|
* in the middle of a compressed node, the string is either already
|
|
|
|
* inserted or this middle node is currently not a key, but can represent
|
|
|
|
* our key. We have just to reallocate the node and make space for the
|
|
|
|
* data pointer. */
|
|
|
|
if (i == len && (!h->iscompr || j == 0 /* not in the middle if j is 0 */)) {
|
2017-04-08 11:31:09 -04:00
|
|
|
debugf("### Insert: node representing key exists\n");
|
2018-06-04 11:26:16 -04:00
|
|
|
/* Make space for the value pointer if needed. */
|
|
|
|
if (!h->iskey || (h->isnull && overwrite)) {
|
2017-04-08 11:31:09 -04:00
|
|
|
h = raxReallocForData(h,data);
|
|
|
|
if (h) memcpy(parentlink,&h,sizeof(h));
|
|
|
|
}
|
|
|
|
if (h == NULL) {
|
|
|
|
errno = ENOMEM;
|
|
|
|
return 0;
|
|
|
|
}
|
2018-06-04 11:26:16 -04:00
|
|
|
|
|
|
|
/* Update the existing key if there is already one. */
|
2017-03-27 09:26:56 -04:00
|
|
|
if (h->iskey) {
|
2017-04-07 02:46:39 -04:00
|
|
|
if (old) *old = raxGetData(h);
|
2018-06-04 11:26:16 -04:00
|
|
|
if (overwrite) raxSetData(h,data);
|
2017-03-27 09:26:56 -04:00
|
|
|
errno = 0;
|
|
|
|
return 0; /* Element already exists. */
|
|
|
|
}
|
2018-06-04 11:26:16 -04:00
|
|
|
|
|
|
|
/* Otherwise set the node as a key. Note that raxSetData()
|
|
|
|
* will set h->iskey. */
|
2017-03-27 09:26:56 -04:00
|
|
|
raxSetData(h,data);
|
|
|
|
rax->numele++;
|
|
|
|
return 1; /* Element inserted. */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* If the node we stopped at is a compressed node, we need to
|
|
|
|
* split it before to continue.
|
|
|
|
*
|
2018-07-01 01:24:50 -04:00
|
|
|
* Splitting a compressed node have a few possible cases.
|
2017-03-27 09:26:56 -04:00
|
|
|
* Imagine that the node 'h' we are currently at is a compressed
|
2020-08-12 03:23:55 -04:00
|
|
|
* node containing the string "ANNIBALE" (it means that it represents
|
2017-03-27 09:26:56 -04:00
|
|
|
* nodes A -> N -> N -> I -> B -> A -> L -> E with the only child
|
|
|
|
* pointer of this node pointing at the 'E' node, because remember that
|
|
|
|
* we have characters at the edges of the graph, not inside the nodes
|
|
|
|
* themselves.
|
|
|
|
*
|
|
|
|
* In order to show a real case imagine our node to also point to
|
|
|
|
* another compressed node, that finally points at the node without
|
|
|
|
* children, representing 'O':
|
|
|
|
*
|
|
|
|
* "ANNIBALE" -> "SCO" -> []
|
|
|
|
*
|
|
|
|
* When inserting we may face the following cases. Note that all the cases
|
|
|
|
* require the insertion of a non compressed node with exactly two
|
|
|
|
* children, except for the last case which just requires splitting a
|
|
|
|
* compressed node.
|
|
|
|
*
|
|
|
|
* 1) Inserting "ANNIENTARE"
|
|
|
|
*
|
|
|
|
* |B| -> "ALE" -> "SCO" -> []
|
|
|
|
* "ANNI" -> |-|
|
|
|
|
* |E| -> (... continue algo ...) "NTARE" -> []
|
|
|
|
*
|
|
|
|
* 2) Inserting "ANNIBALI"
|
|
|
|
*
|
|
|
|
* |E| -> "SCO" -> []
|
|
|
|
* "ANNIBAL" -> |-|
|
|
|
|
* |I| -> (... continue algo ...) []
|
|
|
|
*
|
|
|
|
* 3) Inserting "AGO" (Like case 1, but set iscompr = 0 into original node)
|
|
|
|
*
|
|
|
|
* |N| -> "NIBALE" -> "SCO" -> []
|
|
|
|
* |A| -> |-|
|
|
|
|
* |G| -> (... continue algo ...) |O| -> []
|
|
|
|
*
|
|
|
|
* 4) Inserting "CIAO"
|
|
|
|
*
|
|
|
|
* |A| -> "NNIBALE" -> "SCO" -> []
|
|
|
|
* |-|
|
|
|
|
* |C| -> (... continue algo ...) "IAO" -> []
|
|
|
|
*
|
|
|
|
* 5) Inserting "ANNI"
|
|
|
|
*
|
|
|
|
* "ANNI" -> "BALE" -> "SCO" -> []
|
|
|
|
*
|
|
|
|
* The final algorithm for insertion covering all the above cases is as
|
|
|
|
* follows.
|
|
|
|
*
|
|
|
|
* ============================= ALGO 1 =============================
|
|
|
|
*
|
|
|
|
* For the above cases 1 to 4, that is, all cases where we stopped in
|
|
|
|
* the middle of a compressed node for a character mismatch, do:
|
|
|
|
*
|
|
|
|
* Let $SPLITPOS be the zero-based index at which, in the
|
|
|
|
* compressed node array of characters, we found the mismatching
|
|
|
|
* character. For example if the node contains "ANNIBALE" and we add
|
|
|
|
* "ANNIENTARE" the $SPLITPOS is 4, that is, the index at which the
|
|
|
|
* mismatching character is found.
|
|
|
|
*
|
|
|
|
* 1. Save the current compressed node $NEXT pointer (the pointer to the
|
|
|
|
* child element, that is always present in compressed nodes).
|
|
|
|
*
|
|
|
|
* 2. Create "split node" having as child the non common letter
|
|
|
|
* at the compressed node. The other non common letter (at the key)
|
|
|
|
* will be added later as we continue the normal insertion algorithm
|
|
|
|
* at step "6".
|
|
|
|
*
|
|
|
|
* 3a. IF $SPLITPOS == 0:
|
|
|
|
* Replace the old node with the split node, by copying the auxiliary
|
|
|
|
* data if any. Fix parent's reference. Free old node eventually
|
|
|
|
* (we still need its data for the next steps of the algorithm).
|
|
|
|
*
|
|
|
|
* 3b. IF $SPLITPOS != 0:
|
|
|
|
* Trim the compressed node (reallocating it as well) in order to
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
* contain $splitpos characters. Change child pointer in order to link
|
2017-03-27 09:26:56 -04:00
|
|
|
* to the split node. If new compressed node len is just 1, set
|
|
|
|
* iscompr to 0 (layout is the same). Fix parent's reference.
|
|
|
|
*
|
|
|
|
* 4a. IF the postfix len (the length of the remaining string of the
|
|
|
|
* original compressed node after the split character) is non zero,
|
|
|
|
* create a "postfix node". If the postfix node has just one character
|
|
|
|
* set iscompr to 0, otherwise iscompr to 1. Set the postfix node
|
|
|
|
* child pointer to $NEXT.
|
|
|
|
*
|
|
|
|
* 4b. IF the postfix len is zero, just use $NEXT as postfix pointer.
|
|
|
|
*
|
|
|
|
* 5. Set child[0] of split node to postfix node.
|
|
|
|
*
|
|
|
|
* 6. Set the split node as the current node, set current index at child[1]
|
|
|
|
* and continue insertion algorithm as usually.
|
|
|
|
*
|
|
|
|
* ============================= ALGO 2 =============================
|
|
|
|
*
|
|
|
|
* For case 5, that is, if we stopped in the middle of a compressed
|
|
|
|
* node but no mismatch was found, do:
|
|
|
|
*
|
|
|
|
* Let $SPLITPOS be the zero-based index at which, in the
|
|
|
|
* compressed node array of characters, we stopped iterating because
|
|
|
|
* there were no more keys character to match. So in the example of
|
|
|
|
* the node "ANNIBALE", addig the string "ANNI", the $SPLITPOS is 4.
|
|
|
|
*
|
|
|
|
* 1. Save the current compressed node $NEXT pointer (the pointer to the
|
|
|
|
* child element, that is always present in compressed nodes).
|
|
|
|
*
|
|
|
|
* 2. Create a "postfix node" containing all the characters from $SPLITPOS
|
|
|
|
* to the end. Use $NEXT as the postfix node child pointer.
|
|
|
|
* If the postfix node length is 1, set iscompr to 0.
|
|
|
|
* Set the node as a key with the associated value of the new
|
|
|
|
* inserted key.
|
|
|
|
*
|
|
|
|
* 3. Trim the current node to contain the first $SPLITPOS characters.
|
|
|
|
* As usually if the new node length is just 1, set iscompr to 0.
|
|
|
|
* Take the iskey / associated value as it was in the orignal node.
|
|
|
|
* Fix the parent's reference.
|
|
|
|
*
|
|
|
|
* 4. Set the postfix node as the only child pointer of the trimmed
|
|
|
|
* node created at step 1.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ------------------------- ALGORITHM 1 --------------------------- */
|
|
|
|
if (h->iscompr && i != len) {
|
|
|
|
debugf("ALGO 1: Stopped at compressed node %.*s (%p)\n",
|
|
|
|
h->size, h->data, (void*)h);
|
|
|
|
debugf("Still to insert: %.*s\n", (int)(len-i), s+i);
|
|
|
|
debugf("Splitting at %d: '%c'\n", j, ((char*)h->data)[j]);
|
|
|
|
debugf("Other (key) letter is '%c'\n", s[i]);
|
|
|
|
|
|
|
|
/* 1: Save next pointer. */
|
|
|
|
raxNode **childfield = raxNodeLastChildPtr(h);
|
|
|
|
raxNode *next;
|
|
|
|
memcpy(&next,childfield,sizeof(next));
|
|
|
|
debugf("Next is %p\n", (void*)next);
|
|
|
|
debugf("iskey %d\n", h->iskey);
|
|
|
|
if (h->iskey) {
|
|
|
|
debugf("key value is %p\n", raxGetData(h));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Set the length of the additional nodes we will need. */
|
|
|
|
size_t trimmedlen = j;
|
|
|
|
size_t postfixlen = h->size - j - 1;
|
|
|
|
int split_node_is_key = !trimmedlen && h->iskey && !h->isnull;
|
|
|
|
size_t nodesize;
|
|
|
|
|
|
|
|
/* 2: Create the split node. Also allocate the other nodes we'll need
|
|
|
|
* ASAP, so that it will be simpler to handle OOM. */
|
|
|
|
raxNode *splitnode = raxNewNode(1, split_node_is_key);
|
|
|
|
raxNode *trimmed = NULL;
|
|
|
|
raxNode *postfix = NULL;
|
|
|
|
|
|
|
|
if (trimmedlen) {
|
2018-10-13 08:17:32 -04:00
|
|
|
nodesize = sizeof(raxNode)+trimmedlen+raxPadding(trimmedlen)+
|
|
|
|
sizeof(raxNode*);
|
2017-03-27 09:26:56 -04:00
|
|
|
if (h->iskey && !h->isnull) nodesize += sizeof(void*);
|
|
|
|
trimmed = rax_malloc(nodesize);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (postfixlen) {
|
2018-10-13 08:17:32 -04:00
|
|
|
nodesize = sizeof(raxNode)+postfixlen+raxPadding(postfixlen)+
|
2017-03-27 09:26:56 -04:00
|
|
|
sizeof(raxNode*);
|
|
|
|
postfix = rax_malloc(nodesize);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* OOM? Abort now that the tree is untouched. */
|
|
|
|
if (splitnode == NULL ||
|
|
|
|
(trimmedlen && trimmed == NULL) ||
|
|
|
|
(postfixlen && postfix == NULL))
|
|
|
|
{
|
|
|
|
rax_free(splitnode);
|
|
|
|
rax_free(trimmed);
|
|
|
|
rax_free(postfix);
|
|
|
|
errno = ENOMEM;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
splitnode->data[0] = h->data[j];
|
|
|
|
|
|
|
|
if (j == 0) {
|
|
|
|
/* 3a: Replace the old node with the split node. */
|
|
|
|
if (h->iskey) {
|
|
|
|
void *ndata = raxGetData(h);
|
|
|
|
raxSetData(splitnode,ndata);
|
|
|
|
}
|
|
|
|
memcpy(parentlink,&splitnode,sizeof(splitnode));
|
|
|
|
} else {
|
|
|
|
/* 3b: Trim the compressed node. */
|
|
|
|
trimmed->size = j;
|
|
|
|
memcpy(trimmed->data,h->data,j);
|
|
|
|
trimmed->iscompr = j > 1 ? 1 : 0;
|
|
|
|
trimmed->iskey = h->iskey;
|
|
|
|
trimmed->isnull = h->isnull;
|
|
|
|
if (h->iskey && !h->isnull) {
|
|
|
|
void *ndata = raxGetData(h);
|
|
|
|
raxSetData(trimmed,ndata);
|
|
|
|
}
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(trimmed);
|
|
|
|
memcpy(cp,&splitnode,sizeof(splitnode));
|
|
|
|
memcpy(parentlink,&trimmed,sizeof(trimmed));
|
|
|
|
parentlink = cp; /* Set parentlink to splitnode parent. */
|
|
|
|
rax->numnodes++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 4: Create the postfix node: what remains of the original
|
|
|
|
* compressed node after the split. */
|
|
|
|
if (postfixlen) {
|
|
|
|
/* 4a: create a postfix node. */
|
|
|
|
postfix->iskey = 0;
|
|
|
|
postfix->isnull = 0;
|
|
|
|
postfix->size = postfixlen;
|
|
|
|
postfix->iscompr = postfixlen > 1;
|
|
|
|
memcpy(postfix->data,h->data+j+1,postfixlen);
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(postfix);
|
|
|
|
memcpy(cp,&next,sizeof(next));
|
|
|
|
rax->numnodes++;
|
|
|
|
} else {
|
|
|
|
/* 4b: just use next as postfix node. */
|
|
|
|
postfix = next;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 5: Set splitnode first child as the postfix node. */
|
|
|
|
raxNode **splitchild = raxNodeLastChildPtr(splitnode);
|
|
|
|
memcpy(splitchild,&postfix,sizeof(postfix));
|
|
|
|
|
|
|
|
/* 6. Continue insertion: this will cause the splitnode to
|
|
|
|
* get a new child (the non common character at the currently
|
|
|
|
* inserted key). */
|
|
|
|
rax_free(h);
|
|
|
|
h = splitnode;
|
|
|
|
} else if (h->iscompr && i == len) {
|
|
|
|
/* ------------------------- ALGORITHM 2 --------------------------- */
|
|
|
|
debugf("ALGO 2: Stopped at compressed node %.*s (%p) j = %d\n",
|
|
|
|
h->size, h->data, (void*)h, j);
|
|
|
|
|
|
|
|
/* Allocate postfix & trimmed nodes ASAP to fail for OOM gracefully. */
|
|
|
|
size_t postfixlen = h->size - j;
|
2018-10-13 08:17:32 -04:00
|
|
|
size_t nodesize = sizeof(raxNode)+postfixlen+raxPadding(postfixlen)+
|
|
|
|
sizeof(raxNode*);
|
2017-03-27 09:26:56 -04:00
|
|
|
if (data != NULL) nodesize += sizeof(void*);
|
|
|
|
raxNode *postfix = rax_malloc(nodesize);
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
nodesize = sizeof(raxNode)+j+raxPadding(j)+sizeof(raxNode*);
|
2017-03-27 09:26:56 -04:00
|
|
|
if (h->iskey && !h->isnull) nodesize += sizeof(void*);
|
|
|
|
raxNode *trimmed = rax_malloc(nodesize);
|
|
|
|
|
|
|
|
if (postfix == NULL || trimmed == NULL) {
|
|
|
|
rax_free(postfix);
|
|
|
|
rax_free(trimmed);
|
|
|
|
errno = ENOMEM;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 1: Save next pointer. */
|
|
|
|
raxNode **childfield = raxNodeLastChildPtr(h);
|
|
|
|
raxNode *next;
|
|
|
|
memcpy(&next,childfield,sizeof(next));
|
|
|
|
|
|
|
|
/* 2: Create the postfix node. */
|
|
|
|
postfix->size = postfixlen;
|
|
|
|
postfix->iscompr = postfixlen > 1;
|
|
|
|
postfix->iskey = 1;
|
|
|
|
postfix->isnull = 0;
|
|
|
|
memcpy(postfix->data,h->data+j,postfixlen);
|
|
|
|
raxSetData(postfix,data);
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(postfix);
|
|
|
|
memcpy(cp,&next,sizeof(next));
|
|
|
|
rax->numnodes++;
|
|
|
|
|
|
|
|
/* 3: Trim the compressed node. */
|
|
|
|
trimmed->size = j;
|
|
|
|
trimmed->iscompr = j > 1;
|
|
|
|
trimmed->iskey = 0;
|
|
|
|
trimmed->isnull = 0;
|
|
|
|
memcpy(trimmed->data,h->data,j);
|
|
|
|
memcpy(parentlink,&trimmed,sizeof(trimmed));
|
|
|
|
if (h->iskey) {
|
|
|
|
void *aux = raxGetData(h);
|
|
|
|
raxSetData(trimmed,aux);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fix the trimmed node child pointer to point to
|
|
|
|
* the postfix node. */
|
|
|
|
cp = raxNodeLastChildPtr(trimmed);
|
|
|
|
memcpy(cp,&postfix,sizeof(postfix));
|
|
|
|
|
2018-07-01 01:24:50 -04:00
|
|
|
/* Finish! We don't need to continue with the insertion
|
2017-03-27 09:26:56 -04:00
|
|
|
* algorithm for ALGO 2. The key is already inserted. */
|
|
|
|
rax->numele++;
|
2017-04-07 02:46:39 -04:00
|
|
|
rax_free(h);
|
2017-03-27 09:26:56 -04:00
|
|
|
return 1; /* Key inserted. */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* We walked the radix tree as far as we could, but still there are left
|
2017-04-08 11:31:09 -04:00
|
|
|
* chars in our string. We need to insert the missing nodes. */
|
2017-03-27 09:26:56 -04:00
|
|
|
while(i < len) {
|
|
|
|
raxNode *child;
|
|
|
|
|
|
|
|
/* If this node is going to have a single child, and there
|
|
|
|
* are other characters, so that that would result in a chain
|
|
|
|
* of single-childed nodes, turn it into a compressed node. */
|
|
|
|
if (h->size == 0 && len-i > 1) {
|
|
|
|
debugf("Inserting compressed node\n");
|
|
|
|
size_t comprsize = len-i;
|
|
|
|
if (comprsize > RAX_NODE_MAX_SIZE)
|
|
|
|
comprsize = RAX_NODE_MAX_SIZE;
|
|
|
|
raxNode *newh = raxCompressNode(h,s+i,comprsize,&child);
|
|
|
|
if (newh == NULL) goto oom;
|
|
|
|
h = newh;
|
|
|
|
memcpy(parentlink,&h,sizeof(h));
|
|
|
|
parentlink = raxNodeLastChildPtr(h);
|
|
|
|
i += comprsize;
|
|
|
|
} else {
|
|
|
|
debugf("Inserting normal node\n");
|
|
|
|
raxNode **new_parentlink;
|
|
|
|
raxNode *newh = raxAddChild(h,s[i],&child,&new_parentlink);
|
|
|
|
if (newh == NULL) goto oom;
|
|
|
|
h = newh;
|
|
|
|
memcpy(parentlink,&h,sizeof(h));
|
|
|
|
parentlink = new_parentlink;
|
|
|
|
i++;
|
|
|
|
}
|
2017-04-07 02:46:39 -04:00
|
|
|
rax->numnodes++;
|
2017-03-27 09:26:56 -04:00
|
|
|
h = child;
|
|
|
|
}
|
|
|
|
raxNode *newh = raxReallocForData(h,data);
|
|
|
|
if (newh == NULL) goto oom;
|
|
|
|
h = newh;
|
|
|
|
if (!h->iskey) rax->numele++;
|
|
|
|
raxSetData(h,data);
|
|
|
|
memcpy(parentlink,&h,sizeof(h));
|
|
|
|
return 1; /* Element inserted. */
|
|
|
|
|
|
|
|
oom:
|
|
|
|
/* This code path handles out of memory after part of the sub-tree was
|
2017-04-07 02:46:39 -04:00
|
|
|
* already modified. Set the node as a key, and then remove it. However we
|
|
|
|
* do that only if the node is a terminal node, otherwise if the OOM
|
|
|
|
* happened reallocating a node in the middle, we don't need to free
|
|
|
|
* anything. */
|
|
|
|
if (h->size == 0) {
|
|
|
|
h->isnull = 1;
|
|
|
|
h->iskey = 1;
|
|
|
|
rax->numele++; /* Compensate the next remove. */
|
|
|
|
assert(raxRemove(rax,s,i,NULL) != 0);
|
|
|
|
}
|
2017-03-27 09:26:56 -04:00
|
|
|
errno = ENOMEM;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-06-04 11:26:16 -04:00
|
|
|
/* Overwriting insert. Just a wrapper for raxGenericInsert() that will
|
|
|
|
* update the element if there is already one for the same key. */
|
|
|
|
int raxInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
|
|
|
|
return raxGenericInsert(rax,s,len,data,old,1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Non overwriting insert function: this if an element with the same key
|
|
|
|
* exists, the value is not updated and the function returns 0.
|
|
|
|
* This is a just a wrapper for raxGenericInsert(). */
|
|
|
|
int raxTryInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
|
|
|
|
return raxGenericInsert(rax,s,len,data,old,0);
|
|
|
|
}
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* Find a key in the rax, returns raxNotFound special void pointer value
|
|
|
|
* if the item was not found, otherwise the value associated with the
|
|
|
|
* item is returned. */
|
|
|
|
void *raxFind(rax *rax, unsigned char *s, size_t len) {
|
|
|
|
raxNode *h;
|
|
|
|
|
|
|
|
debugf("### Lookup: %.*s\n", (int)len, s);
|
|
|
|
int splitpos = 0;
|
|
|
|
size_t i = raxLowWalk(rax,s,len,&h,NULL,&splitpos,NULL);
|
|
|
|
if (i != len || (h->iscompr && splitpos != 0) || !h->iskey)
|
|
|
|
return raxNotFound;
|
|
|
|
return raxGetData(h);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return the memory address where the 'parent' node stores the specified
|
|
|
|
* 'child' pointer, so that the caller can update the pointer with another
|
|
|
|
* one if needed. The function assumes it will find a match, otherwise the
|
|
|
|
* operation is an undefined behavior (it will continue scanning the
|
|
|
|
* memory without any bound checking). */
|
|
|
|
raxNode **raxFindParentLink(raxNode *parent, raxNode *child) {
|
|
|
|
raxNode **cp = raxNodeFirstChildPtr(parent);
|
|
|
|
raxNode *c;
|
|
|
|
while(1) {
|
|
|
|
memcpy(&c,cp,sizeof(c));
|
|
|
|
if (c == child) break;
|
|
|
|
cp++;
|
|
|
|
}
|
|
|
|
return cp;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Low level child removal from node. The new node pointer (after the child
|
|
|
|
* removal) is returned. Note that this function does not fix the pointer
|
|
|
|
* of the parent node in its parent, so this task is up to the caller.
|
|
|
|
* The function never fails for out of memory. */
|
|
|
|
raxNode *raxRemoveChild(raxNode *parent, raxNode *child) {
|
|
|
|
debugnode("raxRemoveChild before", parent);
|
|
|
|
/* If parent is a compressed node (having a single child, as for definition
|
|
|
|
* of the data structure), the removal of the child consists into turning
|
|
|
|
* it into a normal node without children. */
|
|
|
|
if (parent->iscompr) {
|
|
|
|
void *data = NULL;
|
|
|
|
if (parent->iskey) data = raxGetData(parent);
|
|
|
|
parent->isnull = 0;
|
|
|
|
parent->iscompr = 0;
|
|
|
|
parent->size = 0;
|
|
|
|
if (parent->iskey) raxSetData(parent,data);
|
|
|
|
debugnode("raxRemoveChild after", parent);
|
|
|
|
return parent;
|
|
|
|
}
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* Otherwise we need to scan for the child pointer and memmove()
|
2017-03-27 09:26:56 -04:00
|
|
|
* accordingly.
|
|
|
|
*
|
|
|
|
* 1. To start we seek the first element in both the children
|
|
|
|
* pointers and edge bytes in the node. */
|
2017-04-07 02:46:39 -04:00
|
|
|
raxNode **cp = raxNodeFirstChildPtr(parent);
|
2017-03-27 09:26:56 -04:00
|
|
|
raxNode **c = cp;
|
|
|
|
unsigned char *e = parent->data;
|
|
|
|
|
|
|
|
/* 2. Search the child pointer to remove inside the array of children
|
|
|
|
* pointers. */
|
|
|
|
while(1) {
|
|
|
|
raxNode *aux;
|
|
|
|
memcpy(&aux,c,sizeof(aux));
|
|
|
|
if (aux == child) break;
|
|
|
|
c++;
|
|
|
|
e++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 3. Remove the edge and the pointer by memmoving the remaining children
|
|
|
|
* pointer and edge bytes one position before. */
|
|
|
|
int taillen = parent->size - (e - parent->data) - 1;
|
|
|
|
debugf("raxRemoveChild tail len: %d\n", taillen);
|
|
|
|
memmove(e,e+1,taillen);
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* Compute the shift, that is the amount of bytes we should move our
|
|
|
|
* child pointers to the left, since the removal of one edge character
|
|
|
|
* and the corresponding padding change, may change the layout.
|
|
|
|
* We just check if in the old version of the node there was at the
|
|
|
|
* end just a single byte and all padding: in that case removing one char
|
|
|
|
* will remove a whole sizeof(void*) word. */
|
|
|
|
size_t shift = ((parent->size+4) % sizeof(void*)) == 1 ? sizeof(void*) : 0;
|
|
|
|
|
|
|
|
/* Move the children pointers before the deletion point. */
|
|
|
|
if (shift)
|
|
|
|
memmove(((char*)cp)-shift,cp,(parent->size-taillen-1)*sizeof(raxNode**));
|
2017-03-27 09:26:56 -04:00
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* Move the remaining "tail" pointers at the right position as well. */
|
2017-08-30 06:40:27 -04:00
|
|
|
size_t valuelen = (parent->iskey && !parent->isnull) ? sizeof(void*) : 0;
|
2018-10-13 08:17:32 -04:00
|
|
|
memmove(((char*)c)-shift,c+1,taillen*sizeof(raxNode**)+valuelen);
|
2017-03-27 09:26:56 -04:00
|
|
|
|
|
|
|
/* 4. Update size. */
|
|
|
|
parent->size--;
|
|
|
|
|
|
|
|
/* realloc the node according to the theoretical memory usage, to free
|
|
|
|
* data if we are over-allocating right now. */
|
|
|
|
raxNode *newnode = rax_realloc(parent,raxNodeCurrentLength(parent));
|
2017-04-07 02:46:39 -04:00
|
|
|
if (newnode) {
|
|
|
|
debugnode("raxRemoveChild after", newnode);
|
|
|
|
}
|
2017-03-27 09:26:56 -04:00
|
|
|
/* Note: if rax_realloc() fails we just return the old address, which
|
|
|
|
* is valid. */
|
|
|
|
return newnode ? newnode : parent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove the specified item. Returns 1 if the item was found and
|
|
|
|
* deleted, 0 otherwise. */
|
2017-04-07 02:46:39 -04:00
|
|
|
int raxRemove(rax *rax, unsigned char *s, size_t len, void **old) {
|
2017-03-27 09:26:56 -04:00
|
|
|
raxNode *h;
|
|
|
|
raxStack ts;
|
|
|
|
|
|
|
|
debugf("### Delete: %.*s\n", (int)len, s);
|
|
|
|
raxStackInit(&ts);
|
|
|
|
int splitpos = 0;
|
2017-04-07 02:46:39 -04:00
|
|
|
size_t i = raxLowWalk(rax,s,len,&h,NULL,&splitpos,&ts);
|
2017-03-27 09:26:56 -04:00
|
|
|
if (i != len || (h->iscompr && splitpos != 0) || !h->iskey) {
|
|
|
|
raxStackFree(&ts);
|
|
|
|
return 0;
|
|
|
|
}
|
2017-04-07 02:46:39 -04:00
|
|
|
if (old) *old = raxGetData(h);
|
2017-03-27 09:26:56 -04:00
|
|
|
h->iskey = 0;
|
|
|
|
rax->numele--;
|
|
|
|
|
|
|
|
/* If this node has no children, the deletion needs to reclaim the
|
|
|
|
* no longer used nodes. This is an iterative process that needs to
|
|
|
|
* walk the three upward, deleting all the nodes with just one child
|
|
|
|
* that are not keys, until the head of the rax is reached or the first
|
|
|
|
* node with more than one child is found. */
|
|
|
|
|
|
|
|
int trycompress = 0; /* Will be set to 1 if we should try to optimize the
|
|
|
|
tree resulting from the deletion. */
|
|
|
|
|
|
|
|
if (h->size == 0) {
|
|
|
|
debugf("Key deleted in node without children. Cleanup needed.\n");
|
|
|
|
raxNode *child = NULL;
|
|
|
|
while(h != rax->head) {
|
|
|
|
child = h;
|
|
|
|
debugf("Freeing child %p [%.*s] key:%d\n", (void*)child,
|
|
|
|
(int)child->size, (char*)child->data, child->iskey);
|
|
|
|
rax_free(child);
|
|
|
|
rax->numnodes--;
|
|
|
|
h = raxStackPop(&ts);
|
|
|
|
/* If this node has more then one child, or actually holds
|
|
|
|
* a key, stop here. */
|
|
|
|
if (h->iskey || (!h->iscompr && h->size != 1)) break;
|
|
|
|
}
|
|
|
|
if (child) {
|
|
|
|
debugf("Unlinking child %p from parent %p\n",
|
|
|
|
(void*)child, (void*)h);
|
|
|
|
raxNode *new = raxRemoveChild(h,child);
|
|
|
|
if (new != h) {
|
|
|
|
raxNode *parent = raxStackPeek(&ts);
|
|
|
|
raxNode **parentlink;
|
|
|
|
if (parent == NULL) {
|
|
|
|
parentlink = &rax->head;
|
|
|
|
} else {
|
|
|
|
parentlink = raxFindParentLink(parent,h);
|
|
|
|
}
|
|
|
|
memcpy(parentlink,&new,sizeof(new));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* If after the removal the node has just a single child
|
|
|
|
* and is not a key, we need to try to compress it. */
|
|
|
|
if (new->size == 1 && new->iskey == 0) {
|
|
|
|
trycompress = 1;
|
|
|
|
h = new;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (h->size == 1) {
|
|
|
|
/* If the node had just one child, after the removal of the key
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
* further compression with adjacent nodes is potentially possible. */
|
2017-03-27 09:26:56 -04:00
|
|
|
trycompress = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Don't try node compression if our nodes pointers stack is not
|
|
|
|
* complete because of OOM while executing raxLowWalk() */
|
|
|
|
if (trycompress && ts.oom) trycompress = 0;
|
|
|
|
|
|
|
|
/* Recompression: if trycompress is true, 'h' points to a radix tree node
|
|
|
|
* that changed in a way that could allow to compress nodes in this
|
|
|
|
* sub-branch. Compressed nodes represent chains of nodes that are not
|
|
|
|
* keys and have a single child, so there are two deletion events that
|
|
|
|
* may alter the tree so that further compression is needed:
|
|
|
|
*
|
|
|
|
* 1) A node with a single child was a key and now no longer is a key.
|
|
|
|
* 2) A node with two children now has just one child.
|
|
|
|
*
|
|
|
|
* We try to navigate upward till there are other nodes that can be
|
|
|
|
* compressed, when we reach the upper node which is not a key and has
|
|
|
|
* a single child, we scan the chain of children to collect the
|
|
|
|
* compressable part of the tree, and replace the current node with the
|
|
|
|
* new one, fixing the child pointer to reference the first non
|
|
|
|
* compressable node.
|
|
|
|
*
|
|
|
|
* Example of case "1". A tree stores the keys "FOO" = 1 and
|
|
|
|
* "FOOBAR" = 2:
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* "FOO" -> "BAR" -> [] (2)
|
|
|
|
* (1)
|
|
|
|
*
|
|
|
|
* After the removal of "FOO" the tree can be compressed as:
|
|
|
|
*
|
|
|
|
* "FOOBAR" -> [] (2)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Example of case "2". A tree stores the keys "FOOBAR" = 1 and
|
|
|
|
* "FOOTER" = 2:
|
|
|
|
*
|
|
|
|
* |B| -> "AR" -> [] (1)
|
|
|
|
* "FOO" -> |-|
|
|
|
|
* |T| -> "ER" -> [] (2)
|
|
|
|
*
|
|
|
|
* After the removal of "FOOTER" the resulting tree is:
|
|
|
|
*
|
|
|
|
* "FOO" -> |B| -> "AR" -> [] (1)
|
|
|
|
*
|
|
|
|
* That can be compressed into:
|
|
|
|
*
|
|
|
|
* "FOOBAR" -> [] (1)
|
|
|
|
*/
|
|
|
|
if (trycompress) {
|
|
|
|
debugf("After removing %.*s:\n", (int)len, s);
|
|
|
|
debugnode("Compression may be needed",h);
|
|
|
|
debugf("Seek start node\n");
|
|
|
|
|
|
|
|
/* Try to reach the upper node that is compressible.
|
|
|
|
* At the end of the loop 'h' will point to the first node we
|
|
|
|
* can try to compress and 'parent' to its parent. */
|
|
|
|
raxNode *parent;
|
|
|
|
while(1) {
|
|
|
|
parent = raxStackPop(&ts);
|
|
|
|
if (!parent || parent->iskey ||
|
|
|
|
(!parent->iscompr && parent->size != 1)) break;
|
|
|
|
h = parent;
|
|
|
|
debugnode("Going up to",h);
|
|
|
|
}
|
|
|
|
raxNode *start = h; /* Compression starting node. */
|
|
|
|
|
|
|
|
/* Scan chain of nodes we can compress. */
|
|
|
|
size_t comprsize = h->size;
|
|
|
|
int nodes = 1;
|
|
|
|
while(h->size != 0) {
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(h);
|
|
|
|
memcpy(&h,cp,sizeof(h));
|
|
|
|
if (h->iskey || (!h->iscompr && h->size != 1)) break;
|
2017-04-07 02:46:39 -04:00
|
|
|
/* Stop here if going to the next node would result into
|
|
|
|
* a compressed node larger than h->size can hold. */
|
|
|
|
if (comprsize + h->size > RAX_NODE_MAX_SIZE) break;
|
2017-03-27 09:26:56 -04:00
|
|
|
nodes++;
|
|
|
|
comprsize += h->size;
|
|
|
|
}
|
|
|
|
if (nodes > 1) {
|
|
|
|
/* If we can compress, create the new node and populate it. */
|
|
|
|
size_t nodesize =
|
2018-10-13 08:17:32 -04:00
|
|
|
sizeof(raxNode)+comprsize+raxPadding(comprsize)+sizeof(raxNode*);
|
2017-03-27 09:26:56 -04:00
|
|
|
raxNode *new = rax_malloc(nodesize);
|
|
|
|
/* An out of memory here just means we cannot optimize this
|
|
|
|
* node, but the tree is left in a consistent state. */
|
|
|
|
if (new == NULL) {
|
|
|
|
raxStackFree(&ts);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
new->iskey = 0;
|
|
|
|
new->isnull = 0;
|
|
|
|
new->iscompr = 1;
|
|
|
|
new->size = comprsize;
|
|
|
|
rax->numnodes++;
|
|
|
|
|
|
|
|
/* Scan again, this time to populate the new node content and
|
|
|
|
* to fix the new node child pointer. At the same time we free
|
|
|
|
* all the nodes that we'll no longer use. */
|
|
|
|
comprsize = 0;
|
|
|
|
h = start;
|
|
|
|
while(h->size != 0) {
|
|
|
|
memcpy(new->data+comprsize,h->data,h->size);
|
|
|
|
comprsize += h->size;
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(h);
|
|
|
|
raxNode *tofree = h;
|
|
|
|
memcpy(&h,cp,sizeof(h));
|
|
|
|
rax_free(tofree); rax->numnodes--;
|
|
|
|
if (h->iskey || (!h->iscompr && h->size != 1)) break;
|
|
|
|
}
|
|
|
|
debugnode("New node",new);
|
|
|
|
|
|
|
|
/* Now 'h' points to the first node that we still need to use,
|
|
|
|
* so our new node child pointer will point to it. */
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(new);
|
|
|
|
memcpy(cp,&h,sizeof(h));
|
|
|
|
|
|
|
|
/* Fix parent link. */
|
|
|
|
if (parent) {
|
|
|
|
raxNode **parentlink = raxFindParentLink(parent,start);
|
|
|
|
memcpy(parentlink,&new,sizeof(new));
|
|
|
|
} else {
|
|
|
|
rax->head = new;
|
|
|
|
}
|
|
|
|
|
|
|
|
debugf("Compressed %d nodes, %d total bytes\n",
|
|
|
|
nodes, (int)comprsize);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
raxStackFree(&ts);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* This is the core of raxFree(): performs a depth-first scan of the
|
|
|
|
* tree and releases all the nodes found. */
|
2017-09-06 07:11:47 -04:00
|
|
|
void raxRecursiveFree(rax *rax, raxNode *n, void (*free_callback)(void*)) {
|
2017-04-08 11:31:09 -04:00
|
|
|
debugnode("free traversing",n);
|
2017-03-27 09:26:56 -04:00
|
|
|
int numchildren = n->iscompr ? 1 : n->size;
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(n);
|
|
|
|
while(numchildren--) {
|
|
|
|
raxNode *child;
|
|
|
|
memcpy(&child,cp,sizeof(child));
|
2017-09-06 07:11:47 -04:00
|
|
|
raxRecursiveFree(rax,child,free_callback);
|
2017-03-27 09:26:56 -04:00
|
|
|
cp--;
|
|
|
|
}
|
|
|
|
debugnode("free depth-first",n);
|
2017-09-06 07:11:47 -04:00
|
|
|
if (free_callback && n->iskey && !n->isnull)
|
|
|
|
free_callback(raxGetData(n));
|
2017-03-27 09:26:56 -04:00
|
|
|
rax_free(n);
|
|
|
|
rax->numnodes--;
|
|
|
|
}
|
|
|
|
|
2017-09-06 07:11:47 -04:00
|
|
|
/* Free a whole radix tree, calling the specified callback in order to
|
|
|
|
* free the auxiliary data. */
|
|
|
|
void raxFreeWithCallback(rax *rax, void (*free_callback)(void*)) {
|
|
|
|
raxRecursiveFree(rax,rax->head,free_callback);
|
2017-03-27 09:26:56 -04:00
|
|
|
assert(rax->numnodes == 0);
|
|
|
|
rax_free(rax);
|
|
|
|
}
|
|
|
|
|
2017-09-06 07:11:47 -04:00
|
|
|
/* Free a whole radix tree. */
|
|
|
|
void raxFree(rax *rax) {
|
|
|
|
raxFreeWithCallback(rax,NULL);
|
|
|
|
}
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* ------------------------------- Iterator --------------------------------- */
|
|
|
|
|
|
|
|
/* Initialize a Rax iterator. This call should be performed a single time
|
|
|
|
* to initialize the iterator, and must be followed by a raxSeek() call,
|
|
|
|
* otherwise the raxPrev()/raxNext() functions will just return EOF. */
|
|
|
|
void raxStart(raxIterator *it, rax *rt) {
|
|
|
|
it->flags = RAX_ITER_EOF; /* No crash if the iterator is not seeked. */
|
|
|
|
it->rt = rt;
|
|
|
|
it->key_len = 0;
|
|
|
|
it->key = it->key_static_string;
|
|
|
|
it->key_max = RAX_ITER_STATIC_LEN;
|
|
|
|
it->data = NULL;
|
2018-06-26 07:14:35 -04:00
|
|
|
it->node_cb = NULL;
|
2017-03-27 09:26:56 -04:00
|
|
|
raxStackInit(&it->stack);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Append characters at the current key string of the iterator 'it'. This
|
|
|
|
* is a low level function used to implement the iterator, not callable by
|
|
|
|
* the user. Returns 0 on out of memory, otherwise 1 is returned. */
|
|
|
|
int raxIteratorAddChars(raxIterator *it, unsigned char *s, size_t len) {
|
|
|
|
if (it->key_max < it->key_len+len) {
|
|
|
|
unsigned char *old = (it->key == it->key_static_string) ? NULL :
|
|
|
|
it->key;
|
|
|
|
size_t new_max = (it->key_len+len)*2;
|
|
|
|
it->key = rax_realloc(old,new_max);
|
|
|
|
if (it->key == NULL) {
|
|
|
|
it->key = (!old) ? it->key_static_string : old;
|
2017-04-07 02:46:39 -04:00
|
|
|
errno = ENOMEM;
|
2017-03-27 09:26:56 -04:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if (old == NULL) memcpy(it->key,it->key_static_string,it->key_len);
|
|
|
|
it->key_max = new_max;
|
|
|
|
}
|
|
|
|
/* Use memmove since there could be an overlap between 's' and
|
|
|
|
* it->key when we use the current key in order to re-seek. */
|
|
|
|
memmove(it->key+it->key_len,s,len);
|
|
|
|
it->key_len += len;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove the specified number of chars from the right of the current
|
|
|
|
* iterator key. */
|
|
|
|
void raxIteratorDelChars(raxIterator *it, size_t count) {
|
|
|
|
it->key_len -= count;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Do an iteration step towards the next element. At the end of the step the
|
|
|
|
* iterator key will represent the (new) current key. If it is not possible
|
|
|
|
* to step in the specified direction since there are no longer elements, the
|
|
|
|
* iterator is flagged with RAX_ITER_EOF.
|
|
|
|
*
|
|
|
|
* If 'noup' is true the function starts directly scanning for the next
|
|
|
|
* lexicographically smaller children, and the current node is already assumed
|
|
|
|
* to be the parent of the last key node, so the first operation to go back to
|
|
|
|
* the parent will be skipped. This option is used by raxSeek() when
|
|
|
|
* implementing seeking a non existing element with the ">" or "<" options:
|
|
|
|
* the starting node is not a key in that particular case, so we start the scan
|
|
|
|
* from a node that does not represent the key set.
|
|
|
|
*
|
|
|
|
* The function returns 1 on success or 0 on out of memory. */
|
|
|
|
int raxIteratorNextStep(raxIterator *it, int noup) {
|
|
|
|
if (it->flags & RAX_ITER_EOF) {
|
2017-08-30 06:40:27 -04:00
|
|
|
return 1;
|
2017-03-27 09:26:56 -04:00
|
|
|
} else if (it->flags & RAX_ITER_JUST_SEEKED) {
|
|
|
|
it->flags &= ~RAX_ITER_JUST_SEEKED;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Save key len, stack items and the node where we are currently
|
|
|
|
* so that on iterator EOF we can restore the current key and state. */
|
|
|
|
size_t orig_key_len = it->key_len;
|
|
|
|
size_t orig_stack_items = it->stack.items;
|
|
|
|
raxNode *orig_node = it->node;
|
|
|
|
|
|
|
|
while(1) {
|
|
|
|
int children = it->node->iscompr ? 1 : it->node->size;
|
|
|
|
if (!noup && children) {
|
|
|
|
debugf("GO DEEPER\n");
|
|
|
|
/* Seek the lexicographically smaller key in this subtree, which
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
* is the first one found always going towards the first child
|
2017-03-27 09:26:56 -04:00
|
|
|
* of every successive node. */
|
|
|
|
if (!raxStackPush(&it->stack,it->node)) return 0;
|
|
|
|
raxNode **cp = raxNodeFirstChildPtr(it->node);
|
|
|
|
if (!raxIteratorAddChars(it,it->node->data,
|
|
|
|
it->node->iscompr ? it->node->size : 1)) return 0;
|
|
|
|
memcpy(&it->node,cp,sizeof(it->node));
|
2018-06-28 06:19:04 -04:00
|
|
|
/* Call the node callback if any, and replace the node pointer
|
|
|
|
* if the callback returns true. */
|
2018-06-26 07:14:35 -04:00
|
|
|
if (it->node_cb && it->node_cb(&it->node))
|
|
|
|
memcpy(cp,&it->node,sizeof(it->node));
|
2017-03-27 09:26:56 -04:00
|
|
|
/* For "next" step, stop every time we find a key along the
|
|
|
|
* way, since the key is lexicograhically smaller compared to
|
|
|
|
* what follows in the sub-children. */
|
|
|
|
if (it->node->iskey) {
|
|
|
|
it->data = raxGetData(it->node);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
} else {
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
/* If we finished exploring the previous sub-tree, switch to the
|
2017-03-27 09:26:56 -04:00
|
|
|
* new one: go upper until a node is found where there are
|
|
|
|
* children representing keys lexicographically greater than the
|
|
|
|
* current key. */
|
|
|
|
while(1) {
|
2017-04-07 02:46:39 -04:00
|
|
|
int old_noup = noup;
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* Already on head? Can't go up, iteration finished. */
|
|
|
|
if (!noup && it->node == it->rt->head) {
|
|
|
|
it->flags |= RAX_ITER_EOF;
|
|
|
|
it->stack.items = orig_stack_items;
|
|
|
|
it->key_len = orig_key_len;
|
|
|
|
it->node = orig_node;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
/* If there are no children at the current node, try parent's
|
|
|
|
* next child. */
|
|
|
|
unsigned char prevchild = it->key[it->key_len-1];
|
|
|
|
if (!noup) {
|
|
|
|
it->node = raxStackPop(&it->stack);
|
|
|
|
} else {
|
|
|
|
noup = 0;
|
|
|
|
}
|
|
|
|
/* Adjust the current key to represent the node we are
|
|
|
|
* at. */
|
|
|
|
int todel = it->node->iscompr ? it->node->size : 1;
|
|
|
|
raxIteratorDelChars(it,todel);
|
|
|
|
|
2017-04-07 02:46:39 -04:00
|
|
|
/* Try visiting the next child if there was at least one
|
2017-03-27 09:26:56 -04:00
|
|
|
* additional child. */
|
2017-04-07 02:46:39 -04:00
|
|
|
if (!it->node->iscompr && it->node->size > (old_noup ? 0 : 1)) {
|
2017-03-27 09:26:56 -04:00
|
|
|
raxNode **cp = raxNodeFirstChildPtr(it->node);
|
|
|
|
int i = 0;
|
|
|
|
while (i < it->node->size) {
|
|
|
|
debugf("SCAN NEXT %c\n", it->node->data[i]);
|
|
|
|
if (it->node->data[i] > prevchild) break;
|
|
|
|
i++;
|
|
|
|
cp++;
|
|
|
|
}
|
|
|
|
if (i != it->node->size) {
|
|
|
|
debugf("SCAN found a new node\n");
|
|
|
|
raxIteratorAddChars(it,it->node->data+i,1);
|
|
|
|
if (!raxStackPush(&it->stack,it->node)) return 0;
|
|
|
|
memcpy(&it->node,cp,sizeof(it->node));
|
2018-06-28 06:19:04 -04:00
|
|
|
/* Call the node callback if any, and replace the node
|
|
|
|
* pointer if the callback returns true. */
|
2018-06-26 07:14:35 -04:00
|
|
|
if (it->node_cb && it->node_cb(&it->node))
|
|
|
|
memcpy(cp,&it->node,sizeof(it->node));
|
2017-03-27 09:26:56 -04:00
|
|
|
if (it->node->iskey) {
|
|
|
|
it->data = raxGetData(it->node);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-07 07:37:58 -04:00
|
|
|
/* Seek the greatest key in the subtree at the current node. Return 0 on
|
2017-03-27 09:26:56 -04:00
|
|
|
* out of memory, otherwise 1. This is an helper function for different
|
|
|
|
* iteration functions below. */
|
|
|
|
int raxSeekGreatest(raxIterator *it) {
|
|
|
|
while(it->node->size) {
|
|
|
|
if (it->node->iscompr) {
|
|
|
|
if (!raxIteratorAddChars(it,it->node->data,
|
|
|
|
it->node->size)) return 0;
|
|
|
|
} else {
|
|
|
|
if (!raxIteratorAddChars(it,it->node->data+it->node->size-1,1))
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
raxNode **cp = raxNodeLastChildPtr(it->node);
|
|
|
|
if (!raxStackPush(&it->stack,it->node)) return 0;
|
|
|
|
memcpy(&it->node,cp,sizeof(it->node));
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Like raxIteratorNextStep() but implements an iteration step moving
|
|
|
|
* to the lexicographically previous element. The 'noup' option has a similar
|
2018-06-26 07:14:35 -04:00
|
|
|
* effect to the one of raxIteratorNextStep(). */
|
2017-03-27 09:26:56 -04:00
|
|
|
int raxIteratorPrevStep(raxIterator *it, int noup) {
|
|
|
|
if (it->flags & RAX_ITER_EOF) {
|
2017-08-30 06:40:27 -04:00
|
|
|
return 1;
|
2017-03-27 09:26:56 -04:00
|
|
|
} else if (it->flags & RAX_ITER_JUST_SEEKED) {
|
|
|
|
it->flags &= ~RAX_ITER_JUST_SEEKED;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Save key len, stack items and the node where we are currently
|
|
|
|
* so that on iterator EOF we can restore the current key and state. */
|
|
|
|
size_t orig_key_len = it->key_len;
|
|
|
|
size_t orig_stack_items = it->stack.items;
|
|
|
|
raxNode *orig_node = it->node;
|
|
|
|
|
|
|
|
while(1) {
|
2017-04-07 02:46:39 -04:00
|
|
|
int old_noup = noup;
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* Already on head? Can't go up, iteration finished. */
|
|
|
|
if (!noup && it->node == it->rt->head) {
|
|
|
|
it->flags |= RAX_ITER_EOF;
|
|
|
|
it->stack.items = orig_stack_items;
|
|
|
|
it->key_len = orig_key_len;
|
|
|
|
it->node = orig_node;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char prevchild = it->key[it->key_len-1];
|
|
|
|
if (!noup) {
|
|
|
|
it->node = raxStackPop(&it->stack);
|
|
|
|
} else {
|
|
|
|
noup = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Adjust the current key to represent the node we are
|
|
|
|
* at. */
|
|
|
|
int todel = it->node->iscompr ? it->node->size : 1;
|
|
|
|
raxIteratorDelChars(it,todel);
|
|
|
|
|
2017-04-07 02:46:39 -04:00
|
|
|
/* Try visiting the prev child if there is at least one
|
|
|
|
* child. */
|
|
|
|
if (!it->node->iscompr && it->node->size > (old_noup ? 0 : 1)) {
|
2017-03-27 09:26:56 -04:00
|
|
|
raxNode **cp = raxNodeLastChildPtr(it->node);
|
|
|
|
int i = it->node->size-1;
|
|
|
|
while (i >= 0) {
|
|
|
|
debugf("SCAN PREV %c\n", it->node->data[i]);
|
|
|
|
if (it->node->data[i] < prevchild) break;
|
|
|
|
i--;
|
|
|
|
cp--;
|
|
|
|
}
|
|
|
|
/* If we found a new subtree to explore in this node,
|
|
|
|
* go deeper following all the last children in order to
|
|
|
|
* find the key lexicographically greater. */
|
|
|
|
if (i != -1) {
|
|
|
|
debugf("SCAN found a new node\n");
|
|
|
|
/* Enter the node we just found. */
|
|
|
|
if (!raxIteratorAddChars(it,it->node->data+i,1)) return 0;
|
|
|
|
if (!raxStackPush(&it->stack,it->node)) return 0;
|
|
|
|
memcpy(&it->node,cp,sizeof(it->node));
|
|
|
|
/* Seek sub-tree max. */
|
|
|
|
if (!raxSeekGreatest(it)) return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return the key: this could be the key we found scanning a new
|
|
|
|
* subtree, or if we did not find a new subtree to explore here,
|
|
|
|
* before giving up with this node, check if it's a key itself. */
|
|
|
|
if (it->node->iskey) {
|
|
|
|
it->data = raxGetData(it->node);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Seek an iterator at the specified element.
|
|
|
|
* Return 0 if the seek failed for syntax error or out of memory. Otherwise
|
2017-04-07 02:46:39 -04:00
|
|
|
* 1 is returned. When 0 is returned for out of memory, errno is set to
|
|
|
|
* the ENOMEM value. */
|
|
|
|
int raxSeek(raxIterator *it, const char *op, unsigned char *ele, size_t len) {
|
2017-03-27 09:26:56 -04:00
|
|
|
int eq = 0, lt = 0, gt = 0, first = 0, last = 0;
|
|
|
|
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
it->stack.items = 0; /* Just resetting. Initialized by raxStart(). */
|
2017-03-27 09:26:56 -04:00
|
|
|
it->flags |= RAX_ITER_JUST_SEEKED;
|
|
|
|
it->flags &= ~RAX_ITER_EOF;
|
|
|
|
it->key_len = 0;
|
|
|
|
it->node = NULL;
|
|
|
|
|
|
|
|
/* Set flags according to the operator used to perform the seek. */
|
|
|
|
if (op[0] == '>') {
|
|
|
|
gt = 1;
|
|
|
|
if (op[1] == '=') eq = 1;
|
|
|
|
} else if (op[0] == '<') {
|
|
|
|
lt = 1;
|
|
|
|
if (op[1] == '=') eq = 1;
|
|
|
|
} else if (op[0] == '=') {
|
|
|
|
eq = 1;
|
|
|
|
} else if (op[0] == '^') {
|
|
|
|
first = 1;
|
|
|
|
} else if (op[0] == '$') {
|
|
|
|
last = 1;
|
|
|
|
} else {
|
2017-04-07 02:46:39 -04:00
|
|
|
errno = 0;
|
2017-03-27 09:26:56 -04:00
|
|
|
return 0; /* Error. */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* If there are no elements, set the EOF condition immediately and
|
|
|
|
* return. */
|
|
|
|
if (it->rt->numele == 0) {
|
|
|
|
it->flags |= RAX_ITER_EOF;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (first) {
|
|
|
|
/* Seeking the first key greater or equal to the empty string
|
|
|
|
* is equivalent to seeking the smaller key available. */
|
2017-04-07 02:46:39 -04:00
|
|
|
return raxSeek(it,">=",NULL,0);
|
2017-03-27 09:26:56 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
if (last) {
|
|
|
|
/* Find the greatest key taking always the last child till a
|
|
|
|
* final node is found. */
|
|
|
|
it->node = it->rt->head;
|
|
|
|
if (!raxSeekGreatest(it)) return 0;
|
|
|
|
assert(it->node->iskey);
|
2017-08-30 06:40:27 -04:00
|
|
|
it->data = raxGetData(it->node);
|
2017-03-27 09:26:56 -04:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* We need to seek the specified key. What we do here is to actually
|
|
|
|
* perform a lookup, and later invoke the prev/next key code that
|
|
|
|
* we already use for iteration. */
|
|
|
|
int splitpos = 0;
|
|
|
|
size_t i = raxLowWalk(it->rt,ele,len,&it->node,NULL,&splitpos,&it->stack);
|
|
|
|
|
|
|
|
/* Return OOM on incomplete stack info. */
|
|
|
|
if (it->stack.oom) return 0;
|
|
|
|
|
|
|
|
if (eq && i == len && (!it->node->iscompr || splitpos == 0) &&
|
|
|
|
it->node->iskey)
|
|
|
|
{
|
|
|
|
/* We found our node, since the key matches and we have an
|
|
|
|
* "equal" condition. */
|
|
|
|
if (!raxIteratorAddChars(it,ele,len)) return 0; /* OOM. */
|
2017-08-30 06:40:27 -04:00
|
|
|
it->data = raxGetData(it->node);
|
2017-04-07 02:46:39 -04:00
|
|
|
} else if (lt || gt) {
|
2017-03-27 09:26:56 -04:00
|
|
|
/* Exact key not found or eq flag not set. We have to set as current
|
|
|
|
* key the one represented by the node we stopped at, and perform
|
|
|
|
* a next/prev operation to seek. To reconstruct the key at this node
|
|
|
|
* we start from the parent and go to the current node, accumulating
|
|
|
|
* the characters found along the way. */
|
|
|
|
if (!raxStackPush(&it->stack,it->node)) return 0;
|
|
|
|
for (size_t j = 1; j < it->stack.items; j++) {
|
|
|
|
raxNode *parent = it->stack.stack[j-1];
|
|
|
|
raxNode *child = it->stack.stack[j];
|
|
|
|
if (parent->iscompr) {
|
|
|
|
if (!raxIteratorAddChars(it,parent->data,parent->size))
|
|
|
|
return 0;
|
|
|
|
} else {
|
|
|
|
raxNode **cp = raxNodeFirstChildPtr(parent);
|
|
|
|
unsigned char *p = parent->data;
|
|
|
|
while(1) {
|
|
|
|
raxNode *aux;
|
|
|
|
memcpy(&aux,cp,sizeof(aux));
|
|
|
|
if (aux == child) break;
|
|
|
|
cp++;
|
|
|
|
p++;
|
|
|
|
}
|
|
|
|
if (!raxIteratorAddChars(it,p,1)) return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
raxStackPop(&it->stack);
|
|
|
|
|
|
|
|
/* We need to set the iterator in the correct state to call next/prev
|
|
|
|
* step in order to seek the desired element. */
|
|
|
|
debugf("After initial seek: i=%d len=%d key=%.*s\n",
|
|
|
|
(int)i, (int)len, (int)it->key_len, it->key);
|
|
|
|
if (i != len && !it->node->iscompr) {
|
|
|
|
/* If we stopped in the middle of a normal node because of a
|
|
|
|
* mismatch, add the mismatching character to the current key
|
|
|
|
* and call the iterator with the 'noup' flag so that it will try
|
|
|
|
* to seek the next/prev child in the current node directly based
|
|
|
|
* on the mismatching character. */
|
|
|
|
if (!raxIteratorAddChars(it,ele+i,1)) return 0;
|
|
|
|
debugf("Seek normal node on mismatch: %.*s\n",
|
|
|
|
(int)it->key_len, (char*)it->key);
|
|
|
|
|
|
|
|
it->flags &= ~RAX_ITER_JUST_SEEKED;
|
|
|
|
if (lt && !raxIteratorPrevStep(it,1)) return 0;
|
|
|
|
if (gt && !raxIteratorNextStep(it,1)) return 0;
|
|
|
|
it->flags |= RAX_ITER_JUST_SEEKED; /* Ignore next call. */
|
|
|
|
} else if (i != len && it->node->iscompr) {
|
|
|
|
debugf("Compressed mismatch: %.*s\n",
|
|
|
|
(int)it->key_len, (char*)it->key);
|
|
|
|
/* In case of a mismatch within a compressed node. */
|
|
|
|
int nodechar = it->node->data[splitpos];
|
|
|
|
int keychar = ele[i];
|
|
|
|
it->flags &= ~RAX_ITER_JUST_SEEKED;
|
|
|
|
if (gt) {
|
|
|
|
/* If the key the compressed node represents is greater
|
|
|
|
* than our seek element, continue forward, otherwise set the
|
|
|
|
* state in order to go back to the next sub-tree. */
|
|
|
|
if (nodechar > keychar) {
|
|
|
|
if (!raxIteratorNextStep(it,0)) return 0;
|
|
|
|
} else {
|
|
|
|
if (!raxIteratorAddChars(it,it->node->data,it->node->size))
|
|
|
|
return 0;
|
|
|
|
if (!raxIteratorNextStep(it,1)) return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (lt) {
|
|
|
|
/* If the key the compressed node represents is smaller
|
|
|
|
* than our seek element, seek the greater key in this
|
|
|
|
* subtree, otherwise set the state in order to go back to
|
|
|
|
* the previous sub-tree. */
|
|
|
|
if (nodechar < keychar) {
|
|
|
|
if (!raxSeekGreatest(it)) return 0;
|
2017-08-30 06:40:27 -04:00
|
|
|
it->data = raxGetData(it->node);
|
2017-03-27 09:26:56 -04:00
|
|
|
} else {
|
|
|
|
if (!raxIteratorAddChars(it,it->node->data,it->node->size))
|
|
|
|
return 0;
|
|
|
|
if (!raxIteratorPrevStep(it,1)) return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
it->flags |= RAX_ITER_JUST_SEEKED; /* Ignore next call. */
|
|
|
|
} else {
|
|
|
|
debugf("No mismatch: %.*s\n",
|
|
|
|
(int)it->key_len, (char*)it->key);
|
|
|
|
/* If there was no mismatch we are into a node representing the
|
|
|
|
* key, (but which is not a key or the seek operator does not
|
|
|
|
* include 'eq'), or we stopped in the middle of a compressed node
|
2018-06-04 11:26:16 -04:00
|
|
|
* after processing all the key. Continue iterating as this was
|
2017-03-27 09:26:56 -04:00
|
|
|
* a legitimate key we stopped at. */
|
|
|
|
it->flags &= ~RAX_ITER_JUST_SEEKED;
|
2018-06-04 11:26:16 -04:00
|
|
|
if (it->node->iscompr && it->node->iskey && splitpos && lt) {
|
|
|
|
/* If we stopped in the middle of a compressed node with
|
|
|
|
* perfect match, and the condition is to seek a key "<" than
|
|
|
|
* the specified one, then if this node is a key it already
|
|
|
|
* represents our match. For instance we may have nodes:
|
|
|
|
*
|
|
|
|
* "f" -> "oobar" = 1 -> "" = 2
|
|
|
|
*
|
|
|
|
* Representing keys "f" = 1, "foobar" = 2. A seek for
|
|
|
|
* the key < "foo" will stop in the middle of the "oobar"
|
|
|
|
* node, but will be our match, representing the key "f".
|
|
|
|
*
|
|
|
|
* So in that case, we don't seek backward. */
|
2019-11-14 06:48:54 -05:00
|
|
|
it->data = raxGetData(it->node);
|
2018-06-04 11:26:16 -04:00
|
|
|
} else {
|
|
|
|
if (gt && !raxIteratorNextStep(it,0)) return 0;
|
|
|
|
if (lt && !raxIteratorPrevStep(it,0)) return 0;
|
|
|
|
}
|
2017-03-27 09:26:56 -04:00
|
|
|
it->flags |= RAX_ITER_JUST_SEEKED; /* Ignore next call. */
|
|
|
|
}
|
2017-04-07 02:46:39 -04:00
|
|
|
} else {
|
|
|
|
/* If we are here just eq was set but no match was found. */
|
|
|
|
it->flags |= RAX_ITER_EOF;
|
|
|
|
return 1;
|
2017-03-27 09:26:56 -04:00
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Go to the next element in the scope of the iterator 'it'.
|
|
|
|
* If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is
|
|
|
|
* returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */
|
2017-04-07 02:46:39 -04:00
|
|
|
int raxNext(raxIterator *it) {
|
2017-03-27 09:26:56 -04:00
|
|
|
if (!raxIteratorNextStep(it,0)) {
|
|
|
|
errno = ENOMEM;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if (it->flags & RAX_ITER_EOF) {
|
|
|
|
errno = 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Go to the previous element in the scope of the iterator 'it'.
|
|
|
|
* If EOF (or out of memory) is reached, 0 is returned, otherwise 1 is
|
|
|
|
* returned. In case 0 is returned because of OOM, errno is set to ENOMEM. */
|
2017-04-07 02:46:39 -04:00
|
|
|
int raxPrev(raxIterator *it) {
|
2017-03-27 09:26:56 -04:00
|
|
|
if (!raxIteratorPrevStep(it,0)) {
|
|
|
|
errno = ENOMEM;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if (it->flags & RAX_ITER_EOF) {
|
|
|
|
errno = 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2017-04-07 02:46:39 -04:00
|
|
|
/* Perform a random walk starting in the current position of the iterator.
|
|
|
|
* Return 0 if the tree is empty or on out of memory. Otherwise 1 is returned
|
|
|
|
* and the iterator is set to the node reached after doing a random walk
|
|
|
|
* of 'steps' steps. If the 'steps' argument is 0, the random walk is performed
|
|
|
|
* using a random number of steps between 1 and two times the logarithm of
|
|
|
|
* the number of elements.
|
|
|
|
*
|
|
|
|
* NOTE: if you use this function to generate random elements from the radix
|
|
|
|
* tree, expect a disappointing distribution. A random walk produces good
|
|
|
|
* random elements if the tree is not sparse, however in the case of a radix
|
|
|
|
* tree certain keys will be reported much more often than others. At least
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
* this function should be able to explore every possible element eventually. */
|
2017-04-07 02:46:39 -04:00
|
|
|
int raxRandomWalk(raxIterator *it, size_t steps) {
|
|
|
|
if (it->rt->numele == 0) {
|
|
|
|
it->flags |= RAX_ITER_EOF;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (steps == 0) {
|
2020-05-14 05:17:47 -04:00
|
|
|
size_t fle = 1+floor(log(it->rt->numele));
|
2017-04-07 02:46:39 -04:00
|
|
|
fle *= 2;
|
|
|
|
steps = 1 + rand() % fle;
|
|
|
|
}
|
|
|
|
|
|
|
|
raxNode *n = it->node;
|
|
|
|
while(steps > 0 || !n->iskey) {
|
|
|
|
int numchildren = n->iscompr ? 1 : n->size;
|
|
|
|
int r = rand() % (numchildren+(n != it->rt->head));
|
|
|
|
|
|
|
|
if (r == numchildren) {
|
|
|
|
/* Go up to parent. */
|
|
|
|
n = raxStackPop(&it->stack);
|
|
|
|
int todel = n->iscompr ? n->size : 1;
|
|
|
|
raxIteratorDelChars(it,todel);
|
|
|
|
} else {
|
|
|
|
/* Select a random child. */
|
|
|
|
if (n->iscompr) {
|
|
|
|
if (!raxIteratorAddChars(it,n->data,n->size)) return 0;
|
|
|
|
} else {
|
|
|
|
if (!raxIteratorAddChars(it,n->data+r,1)) return 0;
|
|
|
|
}
|
|
|
|
raxNode **cp = raxNodeFirstChildPtr(n)+r;
|
|
|
|
if (!raxStackPush(&it->stack,n)) return 0;
|
|
|
|
memcpy(&n,cp,sizeof(n));
|
|
|
|
}
|
|
|
|
if (n->iskey) steps--;
|
|
|
|
}
|
|
|
|
it->node = n;
|
2020-02-07 12:12:10 -05:00
|
|
|
it->data = raxGetData(it->node);
|
2017-04-07 02:46:39 -04:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Compare the key currently pointed by the iterator to the specified
|
|
|
|
* key according to the specified operator. Returns 1 if the comparison is
|
|
|
|
* true, otherwise 0 is returned. */
|
|
|
|
int raxCompare(raxIterator *iter, const char *op, unsigned char *key, size_t key_len) {
|
|
|
|
int eq = 0, lt = 0, gt = 0;
|
|
|
|
|
|
|
|
if (op[0] == '=' || op[1] == '=') eq = 1;
|
2018-02-02 05:10:18 -05:00
|
|
|
if (op[0] == '>') gt = 1;
|
|
|
|
else if (op[0] == '<') lt = 1;
|
2017-04-07 02:46:39 -04:00
|
|
|
else if (op[1] != '=') return 0; /* Syntax error. */
|
|
|
|
|
|
|
|
size_t minlen = key_len < iter->key_len ? key_len : iter->key_len;
|
|
|
|
int cmp = memcmp(iter->key,key,minlen);
|
|
|
|
|
|
|
|
/* Handle == */
|
|
|
|
if (lt == 0 && gt == 0) return cmp == 0 && key_len == iter->key_len;
|
|
|
|
|
|
|
|
/* Handle >, >=, <, <= */
|
|
|
|
if (cmp == 0) {
|
|
|
|
/* Same prefix: longer wins. */
|
|
|
|
if (eq && key_len == iter->key_len) return 1;
|
|
|
|
else if (lt) return iter->key_len < key_len;
|
|
|
|
else if (gt) return iter->key_len > key_len;
|
2019-11-14 06:48:54 -05:00
|
|
|
else return 0; /* Avoid warning, just 'eq' is handled before. */
|
2019-10-06 06:55:21 -04:00
|
|
|
} else if (cmp > 0) {
|
2017-04-07 02:46:39 -04:00
|
|
|
return gt ? 1 : 0;
|
|
|
|
} else /* (cmp < 0) */ {
|
|
|
|
return lt ? 1 : 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* Free the iterator. */
|
|
|
|
void raxStop(raxIterator *it) {
|
|
|
|
if (it->key != it->key_static_string) rax_free(it->key);
|
|
|
|
raxStackFree(&it->stack);
|
|
|
|
}
|
|
|
|
|
2017-08-30 06:40:27 -04:00
|
|
|
/* Return if the iterator is in an EOF state. This happens when raxSeek()
|
|
|
|
* failed to seek an appropriate element, so that raxNext() or raxPrev()
|
|
|
|
* will return zero, or when an EOF condition was reached while iterating
|
|
|
|
* with raxNext() and raxPrev(). */
|
|
|
|
int raxEOF(raxIterator *it) {
|
|
|
|
return it->flags & RAX_ITER_EOF;
|
|
|
|
}
|
|
|
|
|
2017-09-05 07:14:13 -04:00
|
|
|
/* Return the number of elements inside the radix tree. */
|
|
|
|
uint64_t raxSize(rax *rax) {
|
|
|
|
return rax->numele;
|
|
|
|
}
|
|
|
|
|
2017-03-27 09:26:56 -04:00
|
|
|
/* ----------------------------- Introspection ------------------------------ */
|
|
|
|
|
|
|
|
/* This function is mostly used for debugging and learning purposes.
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
* It shows an ASCII representation of a tree on standard output, outline
|
2017-03-27 09:26:56 -04:00
|
|
|
* all the nodes and the contained keys.
|
|
|
|
*
|
|
|
|
* The representation is as follow:
|
|
|
|
*
|
|
|
|
* "foobar" (compressed node)
|
|
|
|
* [abc] (normal node with three children)
|
|
|
|
* [abc]=0x12345678 (node is a key, pointing to value 0x12345678)
|
|
|
|
* [] (a normal empty node)
|
|
|
|
*
|
Squash merging 125 typo/grammar/comment/doc PRs (#7773)
List of squashed commits or PRs
===============================
commit 66801ea
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Jan 13 00:54:31 2020 -0500
typo fix in acl.c
commit 46f55db
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun Sep 6 18:24:11 2020 +0300
Updates a couple of comments
Specifically:
* RM_AutoMemory completed instead of pointing to docs
* Updated link to custom type doc
commit 61a2aa0
Author: xindoo <xindoo@qq.com>
Date: Tue Sep 1 19:24:59 2020 +0800
Correct errors in code comments
commit a5871d1
Author: yz1509 <pro-756@qq.com>
Date: Tue Sep 1 18:36:06 2020 +0800
fix typos in module.c
commit 41eede7
Author: bookug <bookug@qq.com>
Date: Sat Aug 15 01:11:33 2020 +0800
docs: fix typos in comments
commit c303c84
Author: lazy-snail <ws.niu@outlook.com>
Date: Fri Aug 7 11:15:44 2020 +0800
fix spelling in redis.conf
commit 1eb76bf
Author: zhujian <zhujianxyz@gmail.com>
Date: Thu Aug 6 15:22:10 2020 +0800
add a missing 'n' in comment
commit 1530ec2
Author: Daniel Dai <764122422@qq.com>
Date: Mon Jul 27 00:46:35 2020 -0400
fix spelling in tracking.c
commit e517b31
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:32 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit c300eff
Author: Hunter-Chen <huntcool001@gmail.com>
Date: Fri Jul 17 22:33:23 2020 +0800
Update redis.conf
Co-authored-by: Itamar Haber <itamar@redislabs.com>
commit 4c058a8
Author: 陈浩鹏 <chenhaopeng@heytea.com>
Date: Thu Jun 25 19:00:56 2020 +0800
Grammar fix and clarification
commit 5fcaa81
Author: bodong.ybd <bodong.ybd@alibaba-inc.com>
Date: Fri Jun 19 10:09:00 2020 +0800
Fix typos
commit 4caca9a
Author: Pruthvi P <pruthvi@ixigo.com>
Date: Fri May 22 00:33:22 2020 +0530
Fix typo eviciton => eviction
commit b2a25f6
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Sun May 17 12:39:59 2020 -0400
Fix a typo.
commit 12842ae
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun May 3 17:16:59 2020 -0400
fix spelling in redis conf
commit ddba07c
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sat May 2 23:25:34 2020 +0100
Correct a "conflicts" spelling error.
commit 8fc7bf2
Author: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
Date: Thu Apr 30 10:25:27 2020 +0900
docs: fix EXPIRE_FAST_CYCLE_DURATION to ACTIVE_EXPIRE_CYCLE_FAST_DURATION
commit 9b2b67a
Author: Brad Dunbar <dunbarb2@gmail.com>
Date: Fri Apr 24 11:46:22 2020 -0400
Fix a typo.
commit 0746f10
Author: devilinrust <63737265+devilinrust@users.noreply.github.com>
Date: Thu Apr 16 00:17:53 2020 +0200
Fix typos in server.c
commit 92b588d
Author: benjessop12 <56115861+benjessop12@users.noreply.github.com>
Date: Mon Apr 13 13:43:55 2020 +0100
Fix spelling mistake in lazyfree.c
commit 1da37aa
Merge: 2d4ba28 af347a8
Author: hwware <wen.hui.ware@gmail.com>
Date: Thu Mar 5 22:41:31 2020 -0500
Merge remote-tracking branch 'upstream/unstable' into expiretypofix
commit 2d4ba28
Author: hwware <wen.hui.ware@gmail.com>
Date: Mon Mar 2 00:09:40 2020 -0500
fix typo in expire.c
commit 1a746f7
Author: SennoYuki <minakami1yuki@gmail.com>
Date: Thu Feb 27 16:54:32 2020 +0800
fix typo
commit 8599b1a
Author: dongheejeong <donghee950403@gmail.com>
Date: Sun Feb 16 20:31:43 2020 +0000
Fix typo in server.c
commit f38d4e8
Author: hwware <wen.hui.ware@gmail.com>
Date: Sun Feb 2 22:58:38 2020 -0500
fix typo in evict.c
commit fe143fc
Author: Leo Murillo <leonardo.murillo@gmail.com>
Date: Sun Feb 2 01:57:22 2020 -0600
Fix a few typos in redis.conf
commit 1ab4d21
Author: viraja1 <anchan.viraj@gmail.com>
Date: Fri Dec 27 17:15:58 2019 +0530
Fix typo in Latency API docstring
commit ca1f70e
Author: gosth <danxuedexing@qq.com>
Date: Wed Dec 18 15:18:02 2019 +0800
fix typo in sort.c
commit a57c06b
Author: ZYunH <zyunhjob@163.com>
Date: Mon Dec 16 22:28:46 2019 +0800
fix-zset-typo
commit b8c92b5
Author: git-hulk <hulk.website@gmail.com>
Date: Mon Dec 16 15:51:42 2019 +0800
FIX: typo in cluster.c, onformation->information
commit 9dd981c
Author: wujm2007 <jim.wujm@gmail.com>
Date: Mon Dec 16 09:37:52 2019 +0800
Fix typo
commit e132d7a
Author: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Date: Fri Nov 15 00:14:07 2019 +0000
Minor typo change
commit 47f44d5
Author: happynote3966 <01ssrmikururudevice01@gmail.com>
Date: Mon Nov 11 22:08:48 2019 +0900
fix comment typo in redis-cli.c
commit b8bdb0d
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 18:00:17 2019 +0800
Fix a spelling mistake of comments in defragDictBucketCallback
commit 0def46a
Author: fulei <fulei@kuaishou.com>
Date: Wed Oct 16 13:09:27 2019 +0800
fix some spelling mistakes of comments in defrag.c
commit f3596fd
Author: Phil Rajchgot <tophil@outlook.com>
Date: Sun Oct 13 02:02:32 2019 -0400
Typo and grammar fixes
Redis and its documentation are great -- just wanted to submit a few corrections in the spirit of Hacktoberfest. Thanks for all your work on this project. I use it all the time and it works beautifully.
commit 2b928cd
Author: KangZhiDong <worldkzd@gmail.com>
Date: Sun Sep 1 07:03:11 2019 +0800
fix typos
commit 33aea14
Author: Axlgrep <axlgrep@gmail.com>
Date: Tue Aug 27 11:02:18 2019 +0800
Fixed eviction spelling issues
commit e282a80
Author: Simen Flatby <simen@oms.no>
Date: Tue Aug 20 15:25:51 2019 +0200
Update comments to reflect prop name
In the comments the prop is referenced as replica-validity-factor,
but it is really named cluster-replica-validity-factor.
commit 74d1f9a
Author: Jim Green <jimgreen2013@qq.com>
Date: Tue Aug 20 20:00:31 2019 +0800
fix comment error, the code is ok
commit eea1407
Author: Liao Tonglang <liaotonglang@gmail.com>
Date: Fri May 31 10:16:18 2019 +0800
typo fix
fix cna't to can't
commit 0da553c
Author: KAWACHI Takashi <tkawachi@gmail.com>
Date: Wed Jul 17 00:38:16 2019 +0900
Fix typo
commit 7fc8fb6
Author: Michael Prokop <mika@grml.org>
Date: Tue May 28 17:58:42 2019 +0200
Typo fixes
s/familar/familiar/
s/compatiblity/compatibility/
s/ ot / to /
s/itsef/itself/
commit 5f46c9d
Author: zhumoing <34539422+zhumoing@users.noreply.github.com>
Date: Tue May 21 21:16:50 2019 +0800
typo-fixes
typo-fixes
commit 321dfe1
Author: wxisme <850885154@qq.com>
Date: Sat Mar 16 15:10:55 2019 +0800
typo fix
commit b4fb131
Merge: 267e0e6 3df1eb8
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Fri Feb 8 22:55:45 2019 +0200
Merge branch 'unstable' of antirez/redis into unstable
commit 267e0e6
Author: Nikitas Bastas <nikitasbst@gmail.com>
Date: Wed Jan 30 21:26:04 2019 +0200
Minor typo fix
commit 30544e7
Author: inshal96 <39904558+inshal96@users.noreply.github.com>
Date: Fri Jan 4 16:54:50 2019 +0500
remove an extra 'a' in the comments
commit 337969d
Author: BrotherGao <yangdongheng11@gmail.com>
Date: Sat Dec 29 12:37:29 2018 +0800
fix typo in redis.conf
commit 9f4b121
Merge: 423a030 e504583
Author: BrotherGao <yangdongheng@xiaomi.com>
Date: Sat Dec 29 11:41:12 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 423a030
Merge: 42b02b7 46a51cd
Author: 杨东衡 <yangdongheng@xiaomi.com>
Date: Tue Dec 4 23:56:11 2018 +0800
Merge branch 'unstable' of antirez/redis into unstable
commit 42b02b7
Merge: 68c0e6e b8febe6
Author: Dongheng Yang <yangdongheng11@gmail.com>
Date: Sun Oct 28 15:54:23 2018 +0800
Merge pull request #1 from antirez/unstable
update local data
commit 714b589
Author: Christian <crifei93@gmail.com>
Date: Fri Dec 28 01:17:26 2018 +0100
fix typo "resulution"
commit e23259d
Author: garenchan <1412950785@qq.com>
Date: Wed Dec 26 09:58:35 2018 +0800
fix typo: segfauls -> segfault
commit a9359f8
Author: xjp <jianping_xie@aliyun.com>
Date: Tue Dec 18 17:31:44 2018 +0800
Fixed REDISMODULE_H spell bug
commit a12c3e4
Author: jdiaz <jrd.palacios@gmail.com>
Date: Sat Dec 15 23:39:52 2018 -0600
Fixes hyperloglog hash function comment block description
commit 770eb11
Author: 林上耀 <1210tom@163.com>
Date: Sun Nov 25 17:16:10 2018 +0800
fix typo
commit fd97fbb
Author: Chris Lamb <chris@chris-lamb.co.uk>
Date: Fri Nov 23 17:14:01 2018 +0100
Correct "unsupported" typo.
commit a85522d
Author: Jungnam Lee <jungnam.lee@oracle.com>
Date: Thu Nov 8 23:01:29 2018 +0900
fix typo in test comments
commit ade8007
Author: Arun Kumar <palerdot@users.noreply.github.com>
Date: Tue Oct 23 16:56:35 2018 +0530
Fixed grammatical typo
Fixed typo for word 'dictionary'
commit 869ee39
Author: Hamid Alaei <hamid.a85@gmail.com>
Date: Sun Aug 12 16:40:02 2018 +0430
fix documentations: (ThreadSafeContextStart/Stop -> ThreadSafeContextLock/Unlock), minor typo
commit f89d158
Author: Mayank Jain <mayankjain255@gmail.com>
Date: Tue Jul 31 23:01:21 2018 +0530
Updated README.md with some spelling corrections.
Made correction in spelling of some misspelled words.
commit 892198e
Author: dsomeshwar <someshwar.dhayalan@gmail.com>
Date: Sat Jul 21 23:23:04 2018 +0530
typo fix
commit 8a4d780
Author: Itamar Haber <itamar@redislabs.com>
Date: Mon Apr 30 02:06:52 2018 +0300
Fixes some typos
commit e3acef6
Author: Noah Rosamilia <ivoahivoah@gmail.com>
Date: Sat Mar 3 23:41:21 2018 -0500
Fix typo in /deps/README.md
commit 04442fb
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:32:42 2018 +0800
Fix typo in readSyncBulkPayload() comment.
commit 9f36880
Author: WuYunlong <xzsyeb@126.com>
Date: Sat Mar 3 10:20:37 2018 +0800
replication.c comment: run_id -> replid.
commit f866b4a
Author: Francesco 'makevoid' Canessa <makevoid@gmail.com>
Date: Thu Feb 22 22:01:56 2018 +0000
fix comment typo in server.c
commit 0ebc69b
Author: 줍 <jubee0124@gmail.com>
Date: Mon Feb 12 16:38:48 2018 +0900
Fix typo in redis.conf
Fix `five behaviors` to `eight behaviors` in [this sentence ](antirez/redis@unstable/redis.conf#L564)
commit b50a620
Author: martinbroadhurst <martinbroadhurst@users.noreply.github.com>
Date: Thu Dec 28 12:07:30 2017 +0000
Fix typo in valgrind.sup
commit 7d8f349
Author: Peter Boughton <peter@sorcerersisle.com>
Date: Mon Nov 27 19:52:19 2017 +0000
Update CONTRIBUTING; refer doc updates to redis-doc repo.
commit 02dec7e
Author: Klauswk <klauswk1@hotmail.com>
Date: Tue Oct 24 16:18:38 2017 -0200
Fix typo in comment
commit e1efbc8
Author: chenshi <baiwfg2@gmail.com>
Date: Tue Oct 3 18:26:30 2017 +0800
Correct two spelling errors of comments
commit 93327d8
Author: spacewander <spacewanderlzx@gmail.com>
Date: Wed Sep 13 16:47:24 2017 +0800
Update the comment for OBJ_ENCODING_EMBSTR_SIZE_LIMIT's value
The value of OBJ_ENCODING_EMBSTR_SIZE_LIMIT is 44 now instead of 39.
commit 63d361f
Author: spacewander <spacewanderlzx@gmail.com>
Date: Tue Sep 12 15:06:42 2017 +0800
Fix <prevlen> related doc in ziplist.c
According to the definition of ZIP_BIG_PREVLEN and other related code,
the guard of single byte <prevlen> should be 254 instead of 255.
commit ebe228d
Author: hanael80 <hanael80@gmail.com>
Date: Tue Aug 15 09:09:40 2017 +0900
Fix typo
commit 6b696e6
Author: Matt Robenolt <matt@ydekproductions.com>
Date: Mon Aug 14 14:50:47 2017 -0700
Fix typo in LATENCY DOCTOR output
commit a2ec6ae
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 15 14:15:16 2017 +0800
Fix a typo: form => from
commit 3ab7699
Author: caosiyang <caosiyang@qiyi.com>
Date: Thu Aug 10 18:40:33 2017 +0800
Fix a typo: replicationFeedSlavesFromMaster() => replicationFeedSlavesFromMasterStream()
commit 72d43ef
Author: caosiyang <caosiyang@qiyi.com>
Date: Tue Aug 8 15:57:25 2017 +0800
fix a typo: servewr => server
commit 707c958
Author: Bo Cai <charpty@gmail.com>
Date: Wed Jul 26 21:49:42 2017 +0800
redis-cli.c typo: conut -> count.
Signed-off-by: Bo Cai <charpty@gmail.com>
commit b9385b2
Author: JackDrogon <jack.xsuperman@gmail.com>
Date: Fri Jun 30 14:22:31 2017 +0800
Fix some spell problems
commit 20d9230
Author: akosel <aaronjkosel@gmail.com>
Date: Sun Jun 4 19:35:13 2017 -0500
Fix typo
commit b167bfc
Author: Krzysiek Witkowicz <krzysiekwitkowicz@gmail.com>
Date: Mon May 22 21:32:27 2017 +0100
Fix #4008 small typo in comment
commit 2b78ac8
Author: Jake Clarkson <jacobwclarkson@gmail.com>
Date: Wed Apr 26 15:49:50 2017 +0100
Correct typo in tests/unit/hyperloglog.tcl
commit b0f1cdb
Author: Qi Luo <qiluo-msft@users.noreply.github.com>
Date: Wed Apr 19 14:25:18 2017 -0700
Fix typo
commit a90b0f9
Author: charsyam <charsyam@naver.com>
Date: Thu Mar 16 18:19:53 2017 +0900
fix typos
fix typos
fix typos
commit 8430a79
Author: Richard Hart <richardhart92@gmail.com>
Date: Mon Mar 13 22:17:41 2017 -0400
Fixed log message typo in listenToPort.
commit 481a1c2
Author: Vinod Kumar <kumar003vinod@gmail.com>
Date: Sun Jan 15 23:04:51 2017 +0530
src/db.c: Correct "save" -> "safe" typo
commit 586b4d3
Author: wangshaonan <wshn13@gmail.com>
Date: Wed Dec 21 20:28:27 2016 +0800
Fix typo they->the in helloworld.c
commit c1c4b5e
Author: Jenner <hypxm@qq.com>
Date: Mon Dec 19 16:39:46 2016 +0800
typo error
commit 1ee1a3f
Author: tielei <43289893@qq.com>
Date: Mon Jul 18 13:52:25 2016 +0800
fix some comments
commit 11a41fb
Author: Otto Kekäläinen <otto@seravo.fi>
Date: Sun Jul 3 10:23:55 2016 +0100
Fix spelling in documentation and comments
commit 5fb5d82
Author: francischan <f1ancis621@gmail.com>
Date: Tue Jun 28 00:19:33 2016 +0800
Fix outdated comments about redis.c file.
It should now refer to server.c file.
commit 6b254bc
Author: lmatt-bit <lmatt123n@gmail.com>
Date: Thu Apr 21 21:45:58 2016 +0800
Refine the comment of dictRehashMilliseconds func
SLAVECONF->REPLCONF in comment - by andyli029
commit ee9869f
Author: clark.kang <charsyam@naver.com>
Date: Tue Mar 22 11:09:51 2016 +0900
fix typos
commit f7b3b11
Author: Harisankar H <harisankarh@gmail.com>
Date: Wed Mar 9 11:49:42 2016 +0530
Typo correction: "faield" --> "failed"
Typo correction: "faield" --> "failed"
commit 3fd40fc
Author: Itamar Haber <itamar@redislabs.com>
Date: Thu Feb 25 10:31:51 2016 +0200
Fixes a typo in comments
commit 621c160
Author: Prayag Verma <prayag.verma@gmail.com>
Date: Mon Feb 1 12:36:20 2016 +0530
Fix typo in Readme.md
Spelling mistakes -
`eviciton` > `eviction`
`familar` > `familiar`
commit d7d07d6
Author: WonCheol Lee <toctoc21c@gmail.com>
Date: Wed Dec 30 15:11:34 2015 +0900
Typo fixed
commit a4dade7
Author: Felix Bünemann <buenemann@louis.info>
Date: Mon Dec 28 11:02:55 2015 +0100
[ci skip] Improve supervised upstart config docs
This mentions that "expect stop" is required for supervised upstart
to work correctly. See http://upstart.ubuntu.com/cookbook/#expect-stop
for an explanation.
commit d9caba9
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:30:03 2015 +1100
README: Remove trailing whitespace
commit 72d42e5
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:32 2015 +1100
README: Fix typo. th => the
commit dd6e957
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:29:20 2015 +1100
README: Fix typo. familar => familiar
commit 3a12b23
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:28:54 2015 +1100
README: Fix typo. eviciton => eviction
commit 2d1d03b
Author: daurnimator <quae@daurnimator.com>
Date: Mon Dec 21 18:21:45 2015 +1100
README: Fix typo. sever => server
commit 3973b06
Author: Itamar Haber <itamar@garantiadata.com>
Date: Sat Dec 19 17:01:20 2015 +0200
Typo fix
commit 4f2e460
Author: Steve Gao <fu@2token.com>
Date: Fri Dec 4 10:22:05 2015 +0800
Update README - fix typos
commit b21667c
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:48:37 2015 +0800
delete redundancy color judge in sdscatcolor
commit 88894c7
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 22:14:42 2015 +0800
the example output shoule be HelloWorld
commit 2763470
Author: binyan <binbin.yan@nokia.com>
Date: Wed Dec 2 17:41:39 2015 +0800
modify error word keyevente
Signed-off-by: binyan <binbin.yan@nokia.com>
commit 0847b3d
Author: Bruno Martins <bscmartins@gmail.com>
Date: Wed Nov 4 11:37:01 2015 +0000
typo
commit bbb9e9e
Author: dawedawe <dawedawe@gmx.de>
Date: Fri Mar 27 00:46:41 2015 +0100
typo: zimap -> zipmap
commit 5ed297e
Author: Axel Advento <badwolf.bloodseeker.rev@gmail.com>
Date: Tue Mar 3 15:58:29 2015 +0800
Fix 'salve' typos to 'slave'
commit edec9d6
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Wed Jun 12 14:12:47 2019 +0200
Update README.md
Co-Authored-By: Qix <Qix-@users.noreply.github.com>
commit 692a7af
Author: LudwikJaniuk <ludvig.janiuk@gmail.com>
Date: Tue May 28 14:32:04 2019 +0200
grammar
commit d962b0a
Author: Nick Frost <nickfrostatx@gmail.com>
Date: Wed Jul 20 15:17:12 2016 -0700
Minor grammar fix
commit 24fff01aaccaf5956973ada8c50ceb1462e211c6 (typos)
Author: Chad Miller <chadm@squareup.com>
Date: Tue Sep 8 13:46:11 2020 -0400
Fix faulty comment about operation of unlink()
commit 3cd5c1f3326c52aa552ada7ec797c6bb16452355
Author: Kevin <kevin.xgr@gmail.com>
Date: Wed Nov 20 00:13:50 2019 +0800
Fix typo in server.c.
From a83af59 Mon Sep 17 00:00:00 2001
From: wuwo <wuwo@wacai.com>
Date: Fri, 17 Mar 2017 20:37:45 +0800
Subject: [PATCH] falure to failure
From c961896 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B7=A6=E6=87=B6?= <veficos@gmail.com>
Date: Sat, 27 May 2017 15:33:04 +0800
Subject: [PATCH] fix typo
From e600ef2 Mon Sep 17 00:00:00 2001
From: "rui.zou" <rui.zou@yunify.com>
Date: Sat, 30 Sep 2017 12:38:15 +0800
Subject: [PATCH] fix a typo
From c7d07fa Mon Sep 17 00:00:00 2001
From: Alexandre Perrin <alex@kaworu.ch>
Date: Thu, 16 Aug 2018 10:35:31 +0200
Subject: [PATCH] deps README.md typo
From b25cb67 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 10:55:37 +0300
Subject: [PATCH 1/2] fix typos in header
From ad28ca6 Mon Sep 17 00:00:00 2001
From: Guy Korland <gkorland@gmail.com>
Date: Wed, 26 Sep 2018 11:02:36 +0300
Subject: [PATCH 2/2] fix typos
commit 34924cdedd8552466fc22c1168d49236cb7ee915
Author: Adrian Lynch <adi_ady_ade@hotmail.com>
Date: Sat Apr 4 21:59:15 2015 +0100
Typos fixed
commit fd2a1e7
Author: Jan <jsteemann@users.noreply.github.com>
Date: Sat Oct 27 19:13:01 2018 +0200
Fix typos
Fix typos
commit e14e47c1a234b53b0e103c5f6a1c61481cbcbb02
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:30:07 2019 -0500
Fix multiple misspellings of "following"
commit 79b948ce2dac6b453fe80995abbcaac04c213d5a
Author: Andy Lester <andy@petdance.com>
Date: Fri Aug 2 22:24:28 2019 -0500
Fix misspelling of create-cluster
commit 1fffde52666dc99ab35efbd31071a4c008cb5a71
Author: Andy Lester <andy@petdance.com>
Date: Wed Jul 31 17:57:56 2019 -0500
Fix typos
commit 204c9ba9651e9e05fd73936b452b9a30be456cfe
Author: Xiaobo Zhu <xiaobo.zhu@shopee.com>
Date: Tue Aug 13 22:19:25 2019 +0800
fix typos
Squashed commit of the following:
commit 1d9aaf8
Author: danmedani <danmedani@gmail.com>
Date: Sun Aug 2 11:40:26 2015 -0700
README typo fix.
Squashed commit of the following:
commit 32bfa7c
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Jul 6 21:15:08 2015 +0200
Fixed grammer
Squashed commit of the following:
commit b24f69c
Author: Sisir Koppaka <sisir.koppaka@gmail.com>
Date: Mon Mar 2 22:38:45 2015 -0500
utils/hashtable/rehashing.c: Fix typos
Squashed commit of the following:
commit 4e04082
Author: Erik Dubbelboer <erik@dubbelboer.com>
Date: Mon Mar 23 08:22:21 2015 +0000
Small config file documentation improvements
Squashed commit of the following:
commit acb8773
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:52:48 2015 -0700
Typo and grammar fixes in readme
commit 2eb75b6
Author: ctd1500 <ctd1500@gmail.com>
Date: Fri May 8 01:36:18 2015 -0700
fixed redis.conf comment
Squashed commit of the following:
commit a8249a2
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Date: Fri Dec 11 11:39:52 2015 +0530
Revise correction of typos.
Squashed commit of the following:
commit 3c02028
Author: zhaojun11 <zhaojun11@jd.com>
Date: Wed Jan 17 19:05:28 2018 +0800
Fix typos include two code typos in cluster.c and latency.c
Squashed commit of the following:
commit 9dba47c
Author: q191201771 <191201771@qq.com>
Date: Sat Jan 4 11:31:04 2020 +0800
fix function listCreate comment in adlist.c
Update src/server.c
commit 2c7c2cb536e78dd211b1ac6f7bda00f0f54faaeb
Author: charpty <charpty@gmail.com>
Date: Tue May 1 23:16:59 2018 +0800
server.c typo: modules system dictionary type comment
Signed-off-by: charpty <charpty@gmail.com>
commit a8395323fb63cb59cb3591cb0f0c8edb7c29a680
Author: Itamar Haber <itamar@redislabs.com>
Date: Sun May 6 00:25:18 2018 +0300
Updates test_helper.tcl's help with undocumented options
Specifically:
* Host
* Port
* Client
commit bde6f9ced15755cd6407b4af7d601b030f36d60b
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 15:19:19 2018 +0800
fix comments in deps files
commit 3172474ba991532ab799ee1873439f3402412331
Author: wxisme <850885154@qq.com>
Date: Wed Aug 8 14:33:49 2018 +0800
fix some comments
commit 01b6f2b6858b5cf2ce4ad5092d2c746e755f53f0
Author: Thor Juhasz <thor@juhasz.pro>
Date: Sun Nov 18 14:37:41 2018 +0100
Minor fixes to comments
Found some parts a little unclear on a first read, which prompted me to have a better look at the file and fix some minor things I noticed.
Fixing minor typos and grammar. There are no changes to configuration options.
These changes are only meant to help the user better understand the explanations to the various configuration options
2020-09-10 06:43:38 -04:00
|
|
|
* Children are represented in new indented lines, each children prefixed by
|
2017-03-27 09:26:56 -04:00
|
|
|
* the "`-(x)" string, where "x" is the edge byte.
|
|
|
|
*
|
|
|
|
* [abc]
|
|
|
|
* `-(a) "ladin"
|
|
|
|
* `-(b) [kj]
|
|
|
|
* `-(c) []
|
|
|
|
*
|
|
|
|
* However when a node has a single child the following representation
|
|
|
|
* is used instead:
|
|
|
|
*
|
|
|
|
* [abc] -> "ladin" -> []
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* The actual implementation of raxShow(). */
|
|
|
|
void raxRecursiveShow(int level, int lpad, raxNode *n) {
|
|
|
|
char s = n->iscompr ? '"' : '[';
|
|
|
|
char e = n->iscompr ? '"' : ']';
|
|
|
|
|
|
|
|
int numchars = printf("%c%.*s%c", s, n->size, n->data, e);
|
|
|
|
if (n->iskey) {
|
|
|
|
numchars += printf("=%p",raxGetData(n));
|
|
|
|
}
|
|
|
|
|
|
|
|
int numchildren = n->iscompr ? 1 : n->size;
|
|
|
|
/* Note that 7 and 4 magic constants are the string length
|
|
|
|
* of " `-(x) " and " -> " respectively. */
|
|
|
|
if (level) {
|
|
|
|
lpad += (numchildren > 1) ? 7 : 4;
|
|
|
|
if (numchildren == 1) lpad += numchars;
|
|
|
|
}
|
|
|
|
raxNode **cp = raxNodeFirstChildPtr(n);
|
|
|
|
for (int i = 0; i < numchildren; i++) {
|
|
|
|
char *branch = " `-(%c) ";
|
|
|
|
if (numchildren > 1) {
|
|
|
|
printf("\n");
|
|
|
|
for (int j = 0; j < lpad; j++) putchar(' ');
|
|
|
|
printf(branch,n->data[i]);
|
|
|
|
} else {
|
|
|
|
printf(" -> ");
|
|
|
|
}
|
|
|
|
raxNode *child;
|
|
|
|
memcpy(&child,cp,sizeof(child));
|
|
|
|
raxRecursiveShow(level+1,lpad,child);
|
|
|
|
cp++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Show a tree, as outlined in the comment above. */
|
|
|
|
void raxShow(rax *rax) {
|
|
|
|
raxRecursiveShow(0,0,rax->head);
|
|
|
|
putchar('\n');
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Used by debugnode() macro to show info about a given node. */
|
|
|
|
void raxDebugShowNode(const char *msg, raxNode *n) {
|
2018-10-13 08:17:32 -04:00
|
|
|
if (raxDebugMsg == 0) return;
|
2017-03-27 09:26:56 -04:00
|
|
|
printf("%s: %p [%.*s] key:%d size:%d children:",
|
|
|
|
msg, (void*)n, (int)n->size, (char*)n->data, n->iskey, n->size);
|
|
|
|
int numcld = n->iscompr ? 1 : n->size;
|
|
|
|
raxNode **cldptr = raxNodeLastChildPtr(n) - (numcld-1);
|
|
|
|
while(numcld--) {
|
|
|
|
raxNode *child;
|
|
|
|
memcpy(&child,cldptr,sizeof(child));
|
|
|
|
cldptr++;
|
|
|
|
printf("%p ", (void*)child);
|
|
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
fflush(stdout);
|
|
|
|
}
|
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
/* Touch all the nodes of a tree returning a check sum. This is useful
|
|
|
|
* in order to make Valgrind detect if there is something wrong while
|
|
|
|
* reading the data structure.
|
|
|
|
*
|
|
|
|
* This function was used in order to identify Rax bugs after a big refactoring
|
|
|
|
* using this technique:
|
|
|
|
*
|
|
|
|
* 1. The rax-test is executed using Valgrind, adding a printf() so that for
|
|
|
|
* the fuzz tester we see what iteration in the loop we are in.
|
|
|
|
* 2. After every modification of the radix tree made by the fuzz tester
|
|
|
|
* in rax-test.c, we add a call to raxTouch().
|
|
|
|
* 3. Now as soon as an operation will corrupt the tree, raxTouch() will
|
|
|
|
* detect it (via Valgrind) immediately. We can add more calls to narrow
|
|
|
|
* the state.
|
|
|
|
* 4. At this point a good idea is to enable Rax debugging messages immediately
|
|
|
|
* before the moment the tree is corrupted, to see what happens.
|
|
|
|
*/
|
|
|
|
unsigned long raxTouch(raxNode *n) {
|
|
|
|
debugf("Touching %p\n", (void*)n);
|
|
|
|
unsigned long sum = 0;
|
|
|
|
if (n->iskey) {
|
|
|
|
sum += (unsigned long)raxGetData(n);
|
|
|
|
}
|
2017-03-27 09:26:56 -04:00
|
|
|
|
2018-10-13 08:17:32 -04:00
|
|
|
int numchildren = n->iscompr ? 1 : n->size;
|
|
|
|
raxNode **cp = raxNodeFirstChildPtr(n);
|
|
|
|
int count = 0;
|
|
|
|
for (int i = 0; i < numchildren; i++) {
|
|
|
|
if (numchildren > 1) {
|
|
|
|
sum += (long)n->data[i];
|
|
|
|
}
|
|
|
|
raxNode *child;
|
|
|
|
memcpy(&child,cp,sizeof(child));
|
|
|
|
if (child == (void*)0x65d1760) count++;
|
|
|
|
if (count > 1) exit(1);
|
|
|
|
sum += raxTouch(child);
|
|
|
|
cp++;
|
|
|
|
}
|
|
|
|
return sum;
|
|
|
|
}
|