1. 05 12月, 2013 1 次提交
  2. 03 12月, 2013 2 次提交
  3. 04 10月, 2013 1 次提交
    • A
      Replication: fix master timeout. · d7fa6d9a
      antirez 提交于
      Since we started sending REPLCONF ACK from slaves to masters, the
      lastinteraction field of the client structure is always refreshed as
      soon as there is room in the socket output buffer, so masters in timeout
      are detected with too much delay (the socket buffer takes a lot of time
      to be filled by small REPLCONF ACK <number> entries).
      
      This commit only counts data received as interactions with a master,
      solving the issue.
      d7fa6d9a
  4. 27 8月, 2013 2 次提交
  5. 12 8月, 2013 1 次提交
  6. 24 7月, 2013 2 次提交
  7. 17 7月, 2013 1 次提交
  8. 11 7月, 2013 8 次提交
  9. 30 5月, 2013 1 次提交
  10. 27 5月, 2013 2 次提交
    • A
      Replication: send REPLCONF ACK to master. · 146f1d7d
      antirez 提交于
      146f1d7d
    • A
      REPLCONF ACK command. · 1e77b77d
      antirez 提交于
      This special command is used by the slave to inform the master the
      amount of replication stream it currently consumed.
      
      it does not return anything so that we not need to consume additional
      bandwidth needed by the master to reply something.
      
      The master can do a number of things knowing the amount of stream
      processed, such as understanding the "lag" in bytes of the slave, verify
      if a given command was already processed by the slave, and so forth.
      1e77b77d
  11. 25 5月, 2013 3 次提交
  12. 06 3月, 2013 1 次提交
    • A
      API to lookup commands with their original name. · bc1b2e8f
      antirez 提交于
      A new server.orig_commands table was added to the server structure, this
      contains a copy of the commant table unaffected by rename-command
      statements in redis.conf.
      
      A new API lookupCommandOrOriginal() was added that checks both tables,
      new first, old later, so that rewriteClientCommandVector() and friends
      can lookup commands with their new or original name in order to fix the
      client->cmd pointer when the argument vector is renamed.
      
      This fixes the segfault of issue #986, but does not fix a wider range of
      problems resulting from renaming commands that actually operate on data
      and are registered into the AOF file or propagated to slaves... That is
      command renaming should be handled with care.
      bc1b2e8f
  13. 12 2月, 2013 1 次提交
  14. 11 2月, 2013 1 次提交
  15. 05 2月, 2013 1 次提交
  16. 28 1月, 2013 1 次提交
    • A
      Fix decrRefCount() prototype from void to robj pointer. · 2825f21f
      antirez 提交于
      decrRefCount used to get its argument as a void* pointer in order to be
      used as destructor where a 'void free_object(void*)' prototype is
      expected. However this made simpler to introduce bugs by freeing the
      wrong pointer. This commit fixes the argument type and introduces a new
      wrapper called decrRefCountVoid() that can be used when the void*
      argument is needed.
      2825f21f
  17. 19 1月, 2013 3 次提交
  18. 15 1月, 2013 2 次提交
    • A
      Typo fixed, ASCI -> ASCII. · f31d10b9
      antirez 提交于
      f31d10b9
    • A
      CLIENT GETNAME and CLIENT SETNAME introduced. · 786bd393
      antirez 提交于
      Sometimes it is much simpler to debug complex Redis installations if it
      is possible to assign clients a name that is displayed in the CLIENT
      LIST output.
      
      This is the case, for example, for "leaked" connections. The ability to
      provide a name to the client makes it quite trivial to understand what
      is the part of the code implementing the client not releasing the
      resources appropriately.
      
      Behavior:
      
          CLIENT SETNAME: set a name for the client, or remove the current
                          name if an empty name is set.
          CLIENT GETNAME: get the current name, or a nil.
          CLIENT LIST: now displays the client name if any.
      
      Thanks to Mark Gravell for pushing this idea forward.
      786bd393
  19. 03 1月, 2013 1 次提交
  20. 03 12月, 2012 2 次提交
    • A
      Memory leak fixed: release client's bpop->keys dictionary. · 124cb6dd
      antirez 提交于
      Refactoring performed after issue #801 resolution (see commit
      2f87cf8b) introduced a memory leak that
      is fixed by this commit.
      
      I simply forgot to free the new allocated dictionary in the client
      structure trusting the output of "make test" on OSX.
      
      However due to changes in the "leaks" utility the test was no longer
      testing memory leaks. This problem was also fixed.
      
      Fortunately the CI test running at ci.redis.io spotted the bug in the
      valgrind run.
      
      The leak never ended into a stable release.
      124cb6dd
    • A
      Blocking POP: use a dictionary to store keys clinet side. · 07a9f854
      antirez 提交于
      To store the keys we block for during a blocking pop operation, in the
      case the client is blocked for more data to arrive, we used a simple
      linear array of redis objects, in the blockingState structure:
      
          robj **keys;
          int count;
      
      However in order to fix issue #801 we also use a dictionary in order to
      avoid to end in the blocked clients queue for the same key multiple
      times with the same client.
      
      The dictionary was only temporary, just to avoid duplicates, but since
      we create / destroy it there is no point in doing this duplicated work,
      so this commit simply use a dictionary as the main structure to store
      the keys we are blocked for. So instead of the previous fields we now
      just have:
      
          dict *keys;
      
      This simplifies the code and reduces the work done by the server during
      a blocking POP operation.
      07a9f854
  21. 09 11月, 2012 1 次提交
  22. 02 11月, 2012 2 次提交