提交 8abfe5fe 编写于 作者: A antirez

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

上级 a4bb4b29
......@@ -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++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册