1. 09 12月, 2014 13 次提交
  2. 05 12月, 2014 1 次提交
  3. 04 12月, 2014 1 次提交
  4. 03 12月, 2014 7 次提交
    • A
      Network bandwidth tracking + refactoring. · 8a67e5d4
      antirez 提交于
      Track bandwidth used by clients and replication (but diskless
      replication is not tracked since the actual transfer happens in the
      child process).
      
      This includes a refactoring that makes tracking new instantaneous
      metrics simpler.
      8a67e5d4
    • A
      Don't show the ASCII logo if syslog is enabled. · 8fb0d455
      antirez 提交于
      Closes issue #1935.
      8fb0d455
    • A
      Regression test for issue #2175. · 237b37a7
      antirez 提交于
      237b37a7
    • A
      b42e0006
    • A
      Use exp format and more precision output for ZSCAN. · b6b7bc0b
      antirez 提交于
      Ref: issue #2175
      b6b7bc0b
    • A
      Over 80 chars comment trimmed in pfcountCommand(). · 6a0b1b5b
      antirez 提交于
      6a0b1b5b
    • A
      Mark PFCOUNT as read-only, even if not true. · 69efb59a
      antirez 提交于
      PFCOUNT is technically speaking a write command, since the cached value
      of the HLL is exposed in the data structure (design error, mea culpa), and
      can be modified by PFCOUNT.
      
      However if we flag PFCOUNT as "w", read only slaves can't execute the
      command, which is a problem since there are environments where slaves
      are used to scale PFCOUNT reads.
      
      Nor it is possible to just prevent PFCOUNT to modify the data structure
      in slaves, since without the cache we lose too much efficiency.
      
      So while this commit allows slaves to create a temporary inconsistency
      (the strings representing the HLLs in the master and slave can be
      different in certain moments) it is actually harmless.
      
      In the long run this should be probably fixed by turning the HLL into a
      more opaque representation, for example by storing the cached value in
      the part of the string which is not exposed (this should be possible
      with SDS strings).
      69efb59a
  5. 02 12月, 2014 1 次提交
  6. 28 11月, 2014 3 次提交
  7. 26 11月, 2014 2 次提交
  8. 25 11月, 2014 2 次提交
    • M
      Fix lua-cmsgpack 64 bit integer on 32 bit platform · b1c426ef
      Matt Stancliff 提交于
      This syncs lua-cmsgpack with the mattsta/lua-cmsgpack upstream.
      
      Fixes #2161
      b1c426ef
    • A
      Avoid valgrind memory leak false positive in processInlineBuffer(). · f2876f6c
      antirez 提交于
      zmalloc(0) cauesd to actually trigger a non-zero allocation since with
      standard libc malloc we have our own zmalloc header for memory tracking,
      but at the same time the returned pointer is at the end of the block and
      not in the middle. This triggers a false positive when testing with
      valgrind.
      
      When the inline protocol args count is 0, we now avoid reallocating
      c->argv, preventing the issue to happen.
      f2876f6c
  9. 24 11月, 2014 1 次提交
  10. 15 11月, 2014 9 次提交
    • A
      scripting.tcl tests order fixed to match unstable branch. · 9466f3b3
      antirez 提交于
      9466f3b3
    • A
      lua_cjson.c Lua includes: angled -> quoted. · 4861457d
      antirez 提交于
      4861457d
    • A
      Fix non-linux builds error introduced with THP checks. · 6b53b32b
      antirez 提交于
      6b53b32b
    • M
      Lua: add cmsgpack scripting tests · 8934c480
      Matt Stancliff 提交于
      Basically: test to make sure we can load cmsgpack
      and do some sanity checks to make sure pack/unpack works
      properly.  We also have a bonus test for circular encoding
      and decoding because I was curious how it worked.
      8934c480
    • M
      Lua: upgrade cmsgpack to 0.4.0 · 8c3bcbfc
      Matt Stancliff 提交于
      Main reasons for upgrade:
        - Remove a warning when building Redis
        - Add multi pack/unpack
        - Improve memory usage and use Lua allocator properly
        - Fix some edge case encoding/decoding bugs
      8c3bcbfc
    • M
      Lua: remove new warning added by cjson header · aa1a0d6f
      Matt Stancliff 提交于
      clang doesn't like "extern inline" when no definition
      is given right away.
      aa1a0d6f
    • M
      Lua: Use Redis solaris compatability for cjson too · 546db94c
      Matt Stancliff 提交于
      cjson calls isinf, but some Solaris versions don't have isinf
      even with the attempted fix we have in deps/Makefile.
      
      We can harmlessly include the Redis solarisfixes.h header to
      give cjson proper isinf.
      
      Note: cjson has a compile-time setting for using their own defined
      isinf, but the Redis definition in solarisfixes.h is more complete.
      
      Fixes antirez#1620
      546db94c
    • M
      Lua: Upgrade cjson to 2.1.0 (2012-03-01) · 03ca2231
      Matt Stancliff 提交于
      The new cjson has some improvements over our current version including
      increased platform compatability, a new resource limit to restrict
      decode depth, and better invalid number handling.
      
      One minor change was required to deps/Makefile because this version
      of cjson doesn't export itself globally, so we added a quick little
      define of -DENABLE_CJSON_GLOBAL.
      
      cjson now has an optional higher performing float parsing interface,
      but we are not including it (g_fmt.c, dtoa.c) because it requires
      endianness declaration during compile time.
      
      This commit is exactly lua_cjson.c from 2.1.0 with one minor
      change of altering the two Lua includes for local search
      instead of system-wide importing.
      03ca2231
    • M
      Lua: add cjson scripting test · 330ebea4
      Matt Stancliff 提交于
      Two simple decode tests added mainly to check that
      the 'cjson' global gets registered and is usable.
      330ebea4