1. 07 7月, 2012 1 次提交
    • A
      REPLCONF internal command introduced. · dbd8c753
      antirez 提交于
      The REPLCONF command is an internal command (not designed to be directly
      used by normal clients) that allows a slave to set some replication
      related state in the master before issuing SYNC to start the
      replication.
      
      The initial motivation for this command, and the only reason currently
      it is used by the implementation, is to let the slave instance
      communicate its listening port to the slave, so that the master can
      show all the slaves with their listening ports in the "replication"
      section of the INFO output.
      
      This allows clients to auto discover and query all the slaves attached
      into a master.
      
      Currently only a single option of the REPLCONF command is supported, and
      it is called "listening-port", so the slave now starts the replication
      process with something like the following chat:
      
          REPLCONF listening-prot 6380
          SYNC
      
      Note that this works even if the master is an older version of Redis and
      does not understand REPLCONF, because the slave ignores the REPLCONF
      error.
      
      In the future REPLCONF can be used for partial replication and other
      replication related features where there is the need to exchange
      information between master and slave.
      
      NOTE: This commit also fixes a bug: the INFO outout already carried
      information about slaves, but the port was broken, and was obtained
      with getpeername(2), so it was actually just the ephemeral port used
      by the slave to connect to the master as a client.
      dbd8c753
  2. 24 5月, 2012 1 次提交
    • A
      Dead code removed from replication.c. · 8152d0c0
      antirez 提交于
      The user @jokea noticed that the following line of code into
      replication.c made little sense:
      
          addReplySds(slave,sdsempty());
      
      Investigating a bit I found that this was introduced by commit 6208b3a7
      three years ago in the early stages of Redis. The code apparently is not
      useful at all, so I'm removing it.
      
      This change will not be backported into 2.4 so that in the rare case
      this should introduce a bug, we'll have a chance to detect it into the
      development branch. However following the code path it seems like the
      code is not useful at all, so the risk is truly small.
      8152d0c0
  3. 03 5月, 2012 1 次提交
  4. 27 4月, 2012 1 次提交
  5. 31 3月, 2012 1 次提交
  6. 30 3月, 2012 2 次提交
  7. 29 3月, 2012 1 次提交
  8. 28 3月, 2012 1 次提交
  9. 07 3月, 2012 1 次提交
  10. 29 2月, 2012 1 次提交
  11. 16 1月, 2012 1 次提交
  12. 31 12月, 2011 1 次提交
  13. 21 12月, 2011 3 次提交
  14. 15 12月, 2011 1 次提交
  15. 30 11月, 2011 1 次提交
  16. 31 10月, 2011 1 次提交
  17. 18 10月, 2011 1 次提交
  18. 09 6月, 2011 1 次提交
  19. 30 5月, 2011 1 次提交
  20. 22 5月, 2011 2 次提交
  21. 20 5月, 2011 1 次提交
  22. 22 2月, 2011 1 次提交
  23. 20 1月, 2011 1 次提交
  24. 15 12月, 2010 1 次提交
  25. 13 11月, 2010 1 次提交
  26. 05 11月, 2010 4 次提交
  27. 24 10月, 2010 1 次提交
  28. 03 9月, 2010 1 次提交
  29. 27 8月, 2010 1 次提交
  30. 24 8月, 2010 2 次提交
  31. 02 7月, 2010 1 次提交
  32. 01 7月, 2010 1 次提交
    • A
      redis.c split into many different C files. · e2641e09
      antirez 提交于
      networking related stuff moved into networking.c
      
      moved more code
      
      more work on layout of source code
      
      SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;)
      
      cleanly compiling again after the first split, now splitting it in more C files
      
      moving more things around... work in progress
      
      split replication code
      
      splitting more
      
      Sets split
      
      Hash split
      
      replication split
      
      even more splitting
      
      more splitting
      
      minor change
      e2641e09