mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 00:50:50 +00:00
Use unsigned integers for DB ids, for defined wrap-to-zero.
This commit is contained in:
parent
7ac3b3a486
commit
40a2da159c
@ -830,9 +830,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++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user