1. 17 4月, 2014 4 次提交
  2. 16 4月, 2014 1 次提交
  3. 05 4月, 2014 1 次提交
  4. 05 12月, 2013 1 次提交
  5. 05 11月, 2013 1 次提交
    • A
      SCAN code refactored to parse cursor first. · ebcb6251
      antirez 提交于
      The previous implementation of SCAN parsed the cursor in the generic
      function implementing SCAN, SSCAN, HSCAN and ZSCAN.
      
      The actual higher-level command implementation only checked for empty
      keys and return ASAP in that case. The result was that inverting the
      arguments of, for instance, SSCAN for example and write:
      
          SSCAN 0 key
      
      Instead of
      
          SSCAN key 0
      
      Resulted into no error, since 0 is a non-existing key name very likely.
      Just the iterator returned no elements at all.
      
      In order to fix this issue the code was refactored to extract the
      function to parse the cursor and return the error. Every higher level
      command implementation now parses the cursor and later checks if the key
      exist or not.
      ebcb6251
  6. 28 10月, 2013 2 次提交
  7. 19 8月, 2013 2 次提交
    • A
      Fix comments for correctness in zunionInterGenericCommand(). · 3039e806
      antirez 提交于
      Related to issue #1240.
      3039e806
    • A
      Properly init/release iterators in zunionInterGenericCommand(). · cfb9d025
      antirez 提交于
      This commit does mainly two things:
      
      1) It fixes zunionInterGenericCommand() by removing mass-initialization
      of all the iterators used, so that we don't violate the unsafe iterator
      API of dictionaries. This fixes issue #1240.
      
      2) Since the zui* APIs required the allocator to be initialized in the
      zsetopsrc structure in order to use non-iterator related APIs, this
      commit fixes this strict requirement by accessing objects directly via
      the op->subject->ptr pointer we have to the object.
      cfb9d025
  8. 22 7月, 2013 1 次提交
    • A
      Introduction of a new string encoding: EMBSTR · 894eba07
      antirez 提交于
      Previously two string encodings were used for string objects:
      
      1) REDIS_ENCODING_RAW: a string object with obj->ptr pointing to an sds
      stirng.
      
      2) REDIS_ENCODING_INT: a string object where the obj->ptr void pointer
      is casted to a long.
      
      This commit introduces a experimental new encoding called
      REDIS_ENCODING_EMBSTR that implements an object represented by an sds
      string that is not modifiable but allocated in the same memory chunk as
      the robj structure itself.
      
      The chunk looks like the following:
      
      +--------------+-----------+------------+--------+----+
      | robj data... | robj->ptr | sds header | string | \0 |
      +--------------+-----+-----+------------+--------+----+
                           |                       ^
                           +-----------------------+
      
      The robj->ptr points to the contiguous sds string data, so the object
      can be manipulated with the same functions used to manipulate plan
      string objects, however we need just on malloc and one free in order to
      allocate or release this kind of objects. Moreover it has better cache
      locality.
      
      This new allocation strategy should benefit both the memory usage and
      the performances. A performance gain between 60 and 70% was observed
      during micro-benchmarks, however there is more work to do to evaluate
      the performance impact and the memory usage behavior.
      894eba07
  9. 29 1月, 2013 1 次提交
  10. 28 1月, 2013 2 次提交
  11. 19 1月, 2013 1 次提交
  12. 22 11月, 2012 1 次提交
  13. 09 11月, 2012 1 次提交
  14. 23 5月, 2012 1 次提交
    • A
      Fixed issue #516 (ZINTERSTORE mixing sets and zsets). · 348ee1a4
      antirez 提交于
      Weeks ago trying to fix an harmless GCC warning I introduced a bug in
      the ziplist-encoded implementations of sorted sets.
      
      The bug completely broke zuiNext() iterator, that is used in the
      ZINTERSTORE and ZUNIONSTORE implementation, so those two commands are no
      longer reliable starting from Redis version 2.4.12 and latest 2.6.0-RC
      releases.
      
      This commit fixes the problem and adds a regression test.
      348ee1a4
  15. 24 4月, 2012 1 次提交
  16. 22 2月, 2012 1 次提交
  17. 21 2月, 2012 1 次提交
  18. 16 1月, 2012 1 次提交
  19. 12 1月, 2012 1 次提交
  20. 23 12月, 2011 1 次提交
  21. 19 12月, 2011 1 次提交
    • B
      Fix issue #247 : Accepting non-integer parameters when shouldn't · 706b32e0
      BigCat 提交于
      Using `getLongFromObjectOrReply` instead of `atoi` if possible.
      The following functions are modified.
      
      * lrangeCommand
      * ltrimCommand
      * lremCommand
      * lindexCommand
      * lsetCommand
      * zunionInterGenericCommand
      * genericZrangebyscoreCommand
      * sortCommand
      706b32e0
  22. 18 12月, 2011 1 次提交
  23. 14 11月, 2011 1 次提交
  24. 09 11月, 2011 1 次提交
  25. 23 10月, 2011 1 次提交
  26. 05 10月, 2011 1 次提交
  27. 03 10月, 2011 2 次提交
  28. 01 6月, 2011 1 次提交
  29. 31 5月, 2011 1 次提交
  30. 24 5月, 2011 1 次提交
  31. 19 5月, 2011 2 次提交
  32. 15 5月, 2011 1 次提交