summaryrefslogtreecommitdiff
path: root/src/rax.c
diff options
context:
space:
mode:
authorchenhui0212 <chenhui19900212@gmail.com>2020-06-18 17:28:26 +0800
committerchenhui0212 <chenhui19900212@gmail.com>2020-06-18 17:28:26 +0800
commitf800b52172622b84aa8bdf09aa6cd522aade93be (patch)
treea25b212eb1d27c97f8227579a7acb31073933561 /src/rax.c
parent71fafd761ad5f939f485259eb3856ed3766c98be (diff)
downloadredis-f800b52172622b84aa8bdf09aa6cd522aade93be.tar.gz
Fix comments in function raxLowWalk of listpack.c
Diffstat (limited to 'src/rax.c')
-rw-r--r--src/rax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rax.c b/src/rax.c
index 7dcf04582..c8a1fb6b4 100644
--- a/src/rax.c
+++ b/src/rax.c
@@ -487,8 +487,8 @@ static inline size_t raxLowWalk(rax *rax, unsigned char *s, size_t len, raxNode
if (h->iscompr) j = 0; /* Compressed node only child is at index 0. */
memcpy(&h,children+j,sizeof(h));
parentlink = children+j;
- j = 0; /* If the new node is compressed and we do not
- iterate again (since i == l) set the split
+ j = 0; /* If the new node is non compressed and we do not
+ iterate again (since i == len) set the split
position to 0 to signal this node represents
the searched key. */
}