1. 15 5月, 2015 3 次提交
  2. 05 5月, 2015 2 次提交
  3. 04 5月, 2015 8 次提交
    • F
      sdsfree x and y · 8db39699
      FuGangqiang 提交于
      8db39699
    • F
      fix doc example · 98756d4c
      FuGangqiang 提交于
      98756d4c
    • F
      fix typo · 7316fda3
      FuGangqiang 提交于
      7316fda3
    • I
      update copyright year · a5bada19
      Itamar Haber 提交于
      a5bada19
    • T
      Making sentinel flush config on +slave · f0ab4fd6
      therealbill 提交于
      Originally, only the +slave event which occurs when a slave is
      reconfigured during sentinelResetMasterAndChangeAddress triggers a flush
      of the config to disk.  However, newly discovered slaves don't
      apparently trigger this flush but do trigger the +slave event issuance.
      
      So if you start up a sentinel, add a master, then add a slave to the
      master (as a way to reproduce it) you'll see the +slave event issued,
      but the sentinel config won't be updated with the known-slave entry.
      
      This change makes sentinel do the flush of the config if a new slave is
      deteted in sentinelRefreshInstanceInfo.
      f0ab4fd6
    • A
      Sentinel: remove useless sentinelFlushConfig() call · e4c54498
      antirez 提交于
      To rewrite the config in the loop that adds slaves back after a master
      reset, in order to handle switching to another master, is useless: it
      just adds latency since there is an fsync call in the inner loop,
      without providing any additional guarantee, but the contrary, since if
      after the first loop iteration the server crashes we end with just a
      single slave entry losing all the other informations.
      
      It is wiser to rewrite the config at the end when the full new
      state is configured.
      e4c54498
    • Y
      81a8ebd7
    • C
      fix sentinel memory leak · c4d4c1ed
      clark.kang 提交于
      c4d4c1ed
  4. 29 4月, 2015 1 次提交
    • A
      Fix Sentinel memory leak (hiredis bug) · 081a0c94
      antirez 提交于
      This fixes issue #2535, that was actually an hiredis library bug (I
      submitted an issue and fix to the redis/hiredis repo as well).
      
      When an asynchronous hiredis connection subscribes to a Pub/Sub channel
      and gets an error, and in other related conditions, the function
      redisProcessCallbacks() enters a code path where the link is
      disconnected, however the function returns before freeing the allocated
      reply object. This causes a memory leak. The memory leak was trivial to
      trigger in Redis Sentinel, which uses hiredis, every time we tried to
      subscribe to an instance that required a password, in case the Sentinel
      was configured either with the wrong password or without password at
      all. In this case, the -AUTH error caused the leaking code path to be
      executed.
      
      It was verified with Valgrind that after this change the leak no longer
      happens in Sentinel with a misconfigured authentication password.
      081a0c94
  5. 27 4月, 2015 1 次提交
  6. 01 4月, 2015 1 次提交
    • O
      fixes to diskless replication. · c72253ec
      Oran Agra 提交于
      master was closing the connection if the RDB transfer took long time.
      and also sent PINGs to the slave before it got the initial ACK, in which case the slave wouldn't be able to find the EOF marker.
      c72253ec
  7. 27 3月, 2015 1 次提交
  8. 24 3月, 2015 1 次提交
    • A
      Replication: disconnect blocked clients when switching to slave role. · 96aa6106
      antirez 提交于
      Bug as old as Redis and blocking operations. It's hard to trigger since
      only happens on instance role switch, but the results are quite bad
      since an inconsistency between master and slave is created.
      
      How to trigger the bug is a good description of the bug itself.
      
      1. Client does "BLPOP mylist 0" in master.
      2. Master is turned into slave, that replicates from New-Master.
      3. Client does "LPUSH mylist foo" in New-Master.
      4. New-Master propagates write to slave.
      5. Slave receives the LPUSH, the blocked client get served.
      
      Now Master "mylist" key has "foo", Slave "mylist" key is empty.
      
      Highlights:
      
      * At step "2" above, the client remains attached, basically escaping any
        check performed during command dispatch: read only slave, in that case.
      * At step "5" the slave (that was the master), serves the blocked client
        consuming a list element, which is not consumed on the master side.
      
      This scenario is technically likely to happen during failovers, however
      since Redis Sentinel already disconnects clients using the CLIENT
      command when changing the role of the instance, the bug is avoided in
      Sentinel deployments.
      
      Closes #2473.
      96aa6106
  9. 08 3月, 2015 1 次提交
  10. 05 3月, 2015 1 次提交
    • A
      Fix iterator for issue #2438. · f8f40afd
      antirez 提交于
      Itereator misuse due to analyzeLatencyForEvent() accessing the
      dictionary during the iteration, without the iterator being
      reclared as safe.
      f8f40afd
  11. 10 2月, 2015 9 次提交
  12. 03 2月, 2015 1 次提交
    • M
      Update redis-cli.c · 61290d81
      mattcollier 提交于
      Code was adding '\n'  (line 521) to the end of NIL values exlusively making csv output inconsistent.  Removed '\n'
      61290d81
  13. 22 1月, 2015 3 次提交
  14. 21 1月, 2015 1 次提交
    • A
      AOF rewrite: set iterator var to NULL when freed. · e7aa5fb5
      antirez 提交于
      The cleanup code expects that if 'di' is not NULL, it is a valid
      iterator that should be freed.
      
      The result of this bug was a crash of the AOF rewriting process if an
      error occurred after the DBs data are written and the iterator is no
      longer valid.
      e7aa5fb5
  15. 09 1月, 2015 2 次提交
  16. 08 1月, 2015 2 次提交
  17. 23 12月, 2014 1 次提交
    • A
      INFO loading stats: three fixes. · 22a0fe8d
      antirez 提交于
      1. Server unxtime may remain not updated while loading AOF, so ETA is
      not updated correctly.
      
      2. Number of processed byte was not initialized.
      
      3. Possible division by zero condition (likely cause of issue #1932).
      22a0fe8d
  18. 22 12月, 2014 1 次提交