1. 21 3月, 2015 1 次提交
  2. 20 3月, 2015 2 次提交
    • A
      Cluster: better cluster state transiction handling. · 62893f5b
      antirez 提交于
      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.
      62893f5b
    • A
      Cluster: move clusterBeforeSleep() call before unblocked clients processing. · 585f68ac
      antirez 提交于
      Related to issue #2288.
      585f68ac
  3. 18 3月, 2015 1 次提交
  4. 11 2月, 2015 3 次提交
  5. 23 12月, 2014 1 次提交
    • A
      INFO loading stats: three fixes. · 1e8f1577
      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).
      1e8f1577
  6. 19 12月, 2014 1 次提交
  7. 13 12月, 2014 2 次提交
  8. 04 12月, 2014 1 次提交
  9. 03 12月, 2014 3 次提交
    • 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
      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
  10. 12 11月, 2014 1 次提交
  11. 29 10月, 2014 5 次提交
  12. 06 10月, 2014 2 次提交
  13. 19 9月, 2014 1 次提交
  14. 17 9月, 2014 1 次提交
    • A
      Don't propagate SAVE. · ef61ab63
      antirez 提交于
      This is a general fix (check that dirty delta is positive) but actually
      should have as the only effect fixing the SAVE propagation to
      AOF and slaves.
      ef61ab63
  15. 08 9月, 2014 1 次提交
  16. 26 8月, 2014 9 次提交
  17. 28 7月, 2014 1 次提交
  18. 18 7月, 2014 4 次提交
    • A
      PING: backward compatible error for wrong number of args. · 29e1c431
      antirez 提交于
      29e1c431
    • A
      Variadic PING with support for Pub/Sub. · 2264b981
      antirez 提交于
      PING can now be called with an additional arugment, behaving exactly
      like the ECHO command. PING can now also be called in Pub/Sub mode (with
      one more more subscriptions to channels / patterns) in order to trigger
      the delivery of an asynchronous pong message with the optional payload.
      
      This fixes issue #420.
      2264b981
    • A
      PubSub clients refactoring and new PUBSUB flag. · 23c14089
      antirez 提交于
      The code tested many times if a client had active Pub/Sub subscriptions
      by checking the length of a list and dictionary where the patterns and
      channels are stored. This was substituted with a client flag called
      REDIS_PUBSUB that is simpler to test for. Moreover in order to manage
      this flag some code was refactored.
      
      This commit is believed to have no effects in the behavior of the
      server.
      23c14089
    • M
      Fix OBJECT arity · d75fc093
      michael-grunder 提交于
      Previously, the command definition for the OBJECT command specified
      a minimum of two args (and that it was variadic), which meant that
      if you sent this:
      
      OBJECT foo
      
      When cluster was enabled, it would result in an assertion/SEGFAULT
      when Redis was attempting to extract keys.
      
      It appears that OBJECT is not variadic, and only ever takes 3 args.
      
      https://gist.github.com/michael-grunder/25960ce1508396d0d36a
      d75fc093