summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorPremysl Hruby <dfenze@gmail.com>2012-04-02 11:56:03 +0200
committerPremysl Hruby <dfenze@gmail.com>2012-04-02 11:56:03 +0200
commit8918de9202669609442c40af7f7625b5685b8a7c (patch)
tree6d04e29ff35d3da332c86e626e42ad92f4a3d9ea /src/object.c
parenta7138a4cf8301c1eab82d5881aa831ed38d4028c (diff)
downloadredis-8918de9202669609442c40af7f7625b5685b8a7c.tar.gz
remove mentions of VM in comments
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/object.c b/src/object.c
index a15ebcfa8..ba7ea323a 100644
--- a/src/object.c
+++ b/src/object.c
@@ -9,18 +9,8 @@ robj *createObject(int type, void *ptr) {
o->ptr = ptr;
o->refcount = 1;
- /* Set the LRU to the current lruclock (minutes resolution).
- * We do this regardless of the fact VM is active as LRU is also
- * used for the maxmemory directive when Redis is used as cache.
- *
- * Note that this code may run in the context of an I/O thread
- * and accessing server.lruclock in theory is an error
- * (no locks). But in practice this is safe, and even if we read
- * garbage Redis will not fail. */
+ /* Set the LRU to the current lruclock (minutes resolution). */
o->lru = server.lruclock;
- /* The following is only needed if VM is active, but since the conditional
- * is probably more costly than initializing the field it's better to
- * have every field properly initialized anyway. */
return o;
}