mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Use LRU_CLOCK() instead of function getLRUClock()
lookupKey() uses LRU_CLOCK(), so it seems object creation should use LRU_CLOCK() too.
This commit is contained in:
parent
7f1c3607ec
commit
78782ed59f
@ -40,7 +40,7 @@ robj *createObject(int type, void *ptr) {
|
||||
o->refcount = 1;
|
||||
|
||||
/* Set the LRU to the current lruclock (minutes resolution). */
|
||||
o->lru = getLRUClock();
|
||||
o->lru = LRU_CLOCK();
|
||||
return o;
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ robj *createEmbeddedStringObject(char *ptr, size_t len) {
|
||||
o->encoding = REDIS_ENCODING_EMBSTR;
|
||||
o->ptr = sh+1;
|
||||
o->refcount = 1;
|
||||
o->lru = getLRUClock();
|
||||
o->lru = LRU_CLOCK();
|
||||
|
||||
sh->len = len;
|
||||
sh->free = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user