From 2cffe2993b01600ab16e7e424b71db4f6327941c Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 16 Jul 2010 23:56:18 +0200 Subject: [PATCH] TODO list modified, trivial change to source code --- TODO | 9 +++++++-- src/object.c | 3 +-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index dbde9bb5..830149b3 100644 --- a/TODO +++ b/TODO @@ -4,11 +4,10 @@ Redis TODO and Roadmap VERSION 2.2 TODO (Optimizations and latency) ============================================ -* SETNX when failing should not affect WATCH * Support for syslog(3). -* Document ZCOUNT. * Change the implementation of ZCOUNT to use the augmented skiplist in order to be much faster. * Add an explicit test for MULTI/EXEC reloaded in the AOF. +* Command table -> hash table, with support for command renaming VM TODO ======= @@ -59,3 +58,9 @@ KNOWN BUGS ========== * LRANGE and other commands are using 32 bit integers for ranges, and overflows are not detected. So LRANGE mylist 0 23498204823094823904823904 will have random effects. + +REDIS CLI TODO +============== + +* Computer parsable output generation +* Memoize return values so that they can be used later as arguments, like $1 diff --git a/src/object.c b/src/object.c index 4854909e..772637ce 100644 --- a/src/object.c +++ b/src/object.c @@ -11,8 +11,7 @@ robj *createObject(int type, void *ptr) { listDelNode(server.objfreelist,head); if (server.vm_enabled) pthread_mutex_unlock(&server.obj_freelist_mutex); } else { - if (server.vm_enabled) - pthread_mutex_unlock(&server.obj_freelist_mutex); + if (server.vm_enabled) pthread_mutex_unlock(&server.obj_freelist_mutex); o = zmalloc(sizeof(*o)); } o->type = type; -- 2.47.2