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
8abfe5fe
Commit
8abfe5fe
authored
Mar 08, 2013
by
antirez
Browse files
Use unsigned integers for DB ids, for defined wrap-to-zero.
parent
a4bb4b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
8abfe5fe
...
...
@@ -804,9 +804,9 @@ void databasesCron(void) {
/* We use global counters so if we stop the computation at a given
* DB we'll be able to start from the successive in the next
* cron loop iteration. */
static
int
resize_db
=
0
;
static
int
rehash_db
=
0
;
int
j
;
static
unsigned
int
resize_db
=
0
;
static
unsigned
int
rehash_db
=
0
;
unsigned
int
j
;
/* Resize */
for
(
j
=
0
;
j
<
REDIS_DBCRON_DBS_PER_SEC
;
j
++
)
{
...
...
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