Commit ef3a95fa authored by antirez's avatar antirez
Browse files

Use unsigned integers for DB ids, for defined wrap-to-zero.

parent 665b819e
...@@ -801,9 +801,9 @@ void databasesCron(void) { ...@@ -801,9 +801,9 @@ void databasesCron(void) {
/* We use global counters so if we stop the computation at a given /* 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 * DB we'll be able to start from the successive in the next
* cron loop iteration. */ * cron loop iteration. */
static int resize_db = 0; static unsigned int resize_db = 0;
static int rehash_db = 0; static unsigned int rehash_db = 0;
int j; unsigned int j;
/* Resize */ /* Resize */
for (j = 0; j < REDIS_DBCRON_DBS_PER_SEC; j++) { for (j = 0; j < REDIS_DBCRON_DBS_PER_SEC; j++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment