Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3ca02fb9
Commit
3ca02fb9
authored
Dec 08, 2017
by
zhaozhao.zz
Committed by
antirez
Jun 12, 2018
Browse files
zset: change the span of zskiplistNode to unsigned long
parent
59e51f92
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.h
View file @
3ca02fb9
...
...
@@ -339,7 +339,7 @@ typedef long long mstime_t; /* millisecond time type. */
/* Anti-warning macro... */
#define UNUSED(V) ((void) V)
#define ZSKIPLIST_MAXLEVEL
32
/* Should be enough for 2^
32
elements */
#define ZSKIPLIST_MAXLEVEL
64
/* Should be enough for 2^
64
elements */
#define ZSKIPLIST_P 0.25
/* Skiplist P = 1/4 */
/* Append only defines */
...
...
@@ -780,7 +780,7 @@ typedef struct zskiplistNode {
struct
zskiplistNode
*
backward
;
struct
zskiplistLevel
{
struct
zskiplistNode
*
forward
;
unsigned
int
span
;
unsigned
long
span
;
}
level
[];
}
zskiplistNode
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment