1. 20 Mar, 2015 2 commits
    • antirez's avatar
      Cluster: better cluster state transiction handling. · 25c0f5ac
      antirez authored
      Before we relied on the global cluster state to make sure all the hash
      slots are linked to some node, when getNodeByQuery() is called. So
      finding the hash slot unbound was checked with an assertion. However
      this is fragile. The cluster state is often updated in the
      clusterBeforeSleep() function, and not ASAP on state change, so it may
      happen to process clients with a cluster state that is 'ok' but yet
      certain hash slots set to NULL.
      
      With this commit the condition is also checked in getNodeByQuery() and
      reported with a identical error code of -CLUSTERDOWN but slightly
      different error message so that we have more debugging clue in the
      future.
      
      Root cause of issue #2288.
      25c0f5ac
    • antirez's avatar
      Cluster: move clusterBeforeSleep() call before unblocked clients processing. · 2ecb5edf
      antirez authored
      Related to issue #2288.
      2ecb5edf
  2. 18 Mar, 2015 1 commit
  3. 13 Mar, 2015 2 commits
  4. 12 Mar, 2015 2 commits
  5. 11 Mar, 2015 4 commits
  6. 10 Mar, 2015 3 commits
  7. 08 Mar, 2015 1 commit
  8. 04 Mar, 2015 1 commit
    • antirez's avatar
      Fix iterator for issue #2438. · 509a6cc1
      antirez authored
      Itereator misuse due to analyzeLatencyForEvent() accessing the
      dictionary during the iteration, without the iterator being
      reclared as safe.
      509a6cc1
  9. 27 Feb, 2015 8 commits
  10. 26 Feb, 2015 2 commits
    • antirez's avatar
      Improvements to PR #2425 · 832b0c7c
      antirez authored
      1. Remove useless "cs" initialization.
      2. Add a "select" var to capture a condition checked multiple times.
      3. Avoid duplication of the same if (!copy) conditional.
      4. Don't increment dirty if copy is given (no deletion is performed),
         otherwise we propagate MIGRATE when not needed.
      832b0c7c
    • Tommy Wang's avatar
      Add last_dbid to migrateCachedSocket to avoid redundant SELECT · 7fda935a
      Tommy Wang authored
      Avoid redundant SELECT calls when continuously migrating keys to
      the same dbid within a target Redis instance.
      7fda935a
  11. 25 Feb, 2015 1 commit
  12. 24 Feb, 2015 1 commit
  13. 23 Feb, 2015 1 commit
  14. 21 Feb, 2015 1 commit
  15. 17 Feb, 2015 2 commits
  16. 14 Feb, 2015 1 commit
  17. 13 Feb, 2015 2 commits
    • antirez's avatar
      f638f045
    • antirez's avatar
      redis-cli --latency-dist, hopefully better palette. · 3101d2bf
      antirez authored
      Less grays: more readable palette since usually we have a non linear
      distribution of percentages and very near gray tones are hard to take
      apart. Final part of the palette is gradient from yellow to red. The red
      part is hardly reached because of usual distribution of latencies, but
      shows up mainly when latencies are very high because of the logarithmic
      scale, this is coherent to what people expect: red = bad.
      3101d2bf
  18. 12 Feb, 2015 2 commits
  19. 11 Feb, 2015 3 commits