Permalink
Browse files

refer to updateLRUClock's comment REDIS_LRU_CLOCK_MAX is 22 bits,but …

…#define REDIS_LRU_CLOCK_MAX ((1<<21)-1) only 21 bits
  • Loading branch information...
1 parent c0f8665 commit 138695d9908bf9e35875a6e29f24c87a202b1fe4 @Hailei Hailei committed Mar 4, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/redis.h
View
2 src/redis.h
@@ -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 */
/* 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 */
typedef struct redisObject {
unsigned type:4;

0 comments on commit 138695d

Please sign in to comment.