Commits on Jul 31, 2010
Commits on Jul 29, 2010
  1. Change getDoubleFromObject to fail on NaN.

    pietern committed Jul 29, 2010
    Return an error when the resulting value is not a number (NaN). Fix
    ZUNIONSTORE/ZINTERSTORE to clean up when a weight argument is not a
    double value.
  2. Fix ZUNIONSTORE/ZINTERSTORE to never store a NaN score.

    pietern committed Jul 29, 2010
    When +inf and -inf are added, the result is NaN. We don't want NaN
    scores in a sorted set, so agreed on the result of this operation being
  3. Use a large value to consistently trigger a list encoding,

    pietern committed Jul 29, 2010
    even when the list is swapped out and in again.
Commits on Jul 28, 2010
  1. Fixed a replication bug in ZINTERSTORE.

    antirez committed Jul 28, 2010
    In order to trigger the bug what's needed is to call ZINTERSTORE
    resulting into an empty set created, bug against a key that already
    existed. The command was not propagated, so the replica ended with the
    key that the master removed. Sequence of command to reproduce:
    redis-cli hset 446 34 905
    redis-cli hset 446 393 911
    redis-cli zadd 966 0.085412045980529885 652
    redis-cli zadd 645 0.25081839284432045 280
    redis-cli zinterstore 446 2 966 645
  2. better random dataset creation function in test. master-slave replica…

    antirez committed Jul 28, 2010
    …tion test now is able to save the two datasets in CSV when an inconsistency is detected.
Commits on Jul 27, 2010
  1. Consistency test improved

    antirez committed Jul 27, 2010
  2. STRLEN command implemented

    antirez committed Jul 27, 2010
  3. use the function deprecated attribute if compiling with GCC to get wa…

    antirez committed Jul 27, 2010
    …rnings for malloc/free usages. We always want to use our zmalloc/zfree versions for memory usage tracking
Commits on Jul 24, 2010
  1. Add zcalloc and use it where appropriate

    d0k committed Jul 24, 2010
    calloc is more effecient than malloc+memset when the system uses mmap to
    allocate memory. mmap always returns zeroed memory so the memset can be
    avoided.  The threshold to use mmap is 16k in osx libc and 128k in bsd
    libc and glibc. The kernel can lazily allocate the pages, this reduces
    memory usage when we have a page table or hash table that is mostly
    This change is most visible when you start a new redis instance with vm
    enabled.  You'll see no increased memory usage no matter how big your
    page table is.
  2. Remove _dictAlloc and friends

    d0k committed Jul 24, 2010
    zmalloc calls abort() so _dictPanic will never be called.
  3. Reduce code duplication

    d0k committed Jul 24, 2010
Commits on Jul 23, 2010
Commits on Jul 22, 2010
  1. other shared objects where created in the I/O thread in createStringO…

    antirez committed Jul 22, 2010
    …bjectFromLongLong. Fixed as well.
  2. minor typo fixed in a comment

    antirez committed Jul 22, 2010
  3. don't use object sharing inside I/O threads, as a fix for a well know…

    antirez committed Jul 22, 2010
    …n instability of VM introduced with the new object sharing code
Commits on Jul 21, 2010
Commits on Jul 16, 2010
Commits on Jul 12, 2010
Commits on Jul 9, 2010
  1. fmacro included in linenoise.c

    antirez committed Jul 9, 2010
Commits on Jul 7, 2010
Commits on Jul 6, 2010