Commit 138695d9 authored by zhanghailei's avatar zhanghailei
Browse files

refer to updateLRUClock's comment REDIS_LRU_CLOCK_MAX is 22 bits,but #define...

refer to updateLRUClock's comment REDIS_LRU_CLOCK_MAX is 22 bits,but #define REDIS_LRU_CLOCK_MAX ((1<<21)-1) only 21 bits
parent c0f86654
...@@ -382,7 +382,7 @@ typedef long long mstime_t; /* millisecond time type. */ ...@@ -382,7 +382,7 @@ typedef long long mstime_t; /* millisecond time type. */
/* A redis object, that is a type able to hold a string / list / set */ /* A redis object, that is a type able to hold a string / list / set */
/* The actual Redis Object */ /* The actual Redis Object */
#define REDIS_LRU_CLOCK_MAX ((1<<21)-1) /* Max value of obj->lru */ #define REDIS_LRU_CLOCK_MAX ((1<<22)-1) /* Max value of obj->lru */
#define REDIS_LRU_CLOCK_RESOLUTION 10 /* LRU clock resolution in seconds */ #define REDIS_LRU_CLOCK_RESOLUTION 10 /* LRU clock resolution in seconds */
typedef struct redisObject { typedef struct redisObject {
unsigned type:4; unsigned type:4;
......
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