1. 06 10月, 2016 2 次提交
    • A
      Fix name of mispelled function. · 799208de
      antirez 提交于
      799208de
    • A
      Module: Ability to get context from IO context. · 152c1b68
      antirez 提交于
      It was noted by @dvirsky that it is not possible to use string functions
      when writing the AOF file. This sometimes is critical since the command
      rewriting may need to be built in the context of the AOF callback, and
      without access to the context, and the limited types that the AOF
      production functions will accept, this can be an issue.
      
      Moreover there are other needs that we can't anticipate regarding the
      ability to use Redis Modules APIs using the context in order to build
      representations to emit AOF / RDB.
      
      Because of this a new API was added that allows the user to get a
      temporary context from the IO context. The context is auto released
      if obtained when the RDB / AOF callback returns.
      
      Calling multiple time the function to get the context, always returns
      the same one, since it is invalid to have more than a single context.
      152c1b68
  2. 19 9月, 2016 1 次提交
  3. 16 9月, 2016 3 次提交
  4. 15 9月, 2016 2 次提交
  5. 13 9月, 2016 2 次提交
    • A
      MEMORY OVERHEAD implemented (using Oran Agra initial implementation). · 8c84c962
      antirez 提交于
      This code was extracted from @oranagra PR #3223 and modified in order
      to provide only certain amounts of information compared to the original
      code. It was also moved from DEBUG to the newly introduced MEMORY
      command. Thanks to Oran for the implementation and the PR.
      
      It implements detailed memory usage stats that can be useful in both
      provisioning and troubleshooting memory usage in Redis.
      8c84c962
    • A
      objectComputeSize(): estimate collections sampling N elements. · 89dec692
      antirez 提交于
      For most tasks, we need the memory estimation to be O(1) by default.
      This commit also implements an initial MEMORY command.
      Note that objectComputeSize() takes the number of samples to check as
      argument, so MEMORY should be able to get the sample size as option
      to make precision VS CPU tradeoff tunable.
      
      Related to: PR #3223.
      89dec692
  6. 09 8月, 2016 2 次提交
  7. 03 8月, 2016 1 次提交
    • A
      Security: Cross Protocol Scripting protection. · a81a92ca
      antirez 提交于
      This is an attempt at mitigating problems due to cross protocol
      scripting, an attack targeting services using line oriented protocols
      like Redis that can accept HTTP requests as valid protocol, by
      discarding the invalid parts and accepting the payloads sent, for
      example, via a POST request.
      
      For this to be effective, when we detect POST and Host: and terminate
      the connection asynchronously, the networking code was modified in order
      to never process further input. It was later verified that in a
      pipelined request containing a POST command, the successive commands are
      not executed.
      a81a92ca
  8. 27 7月, 2016 1 次提交
    • A
      Ability of slave to announce arbitrary ip/port to master. · 55385f99
      antirez 提交于
      This feature is useful, especially in deployments using Sentinel in
      order to setup Redis HA, where the slave is executed with NAT or port
      forwarding, so that the auto-detected port/ip addresses, as listed in
      the "INFO replication" output of the master, or as provided by the
      "ROLE" command, don't match the real addresses at which the slave is
      reachable for connections.
      55385f99
  9. 22 7月, 2016 1 次提交
    • A
      Avoid simultaneous RDB and AOF child process. · 0a628e51
      antirez 提交于
      This patch, written in collaboration with Oran Agra (@oranagra) is a companion
      to 780a8b1d. Together the two patches should avoid that the AOF and RDB saving
      processes can be spawned at the same time. Previously conditions that
      could lead to two saving processes at the same time were:
      
      1. When AOF is enabled via CONFIG SET and an RDB saving process is
         already active.
      
      2. When the SYNC command decides to start an RDB saving process ASAP in
         order to serve a new slave that cannot partially resynchronize (but
         only if we have a disk target for replication, for diskless
         replication there is not such a problem).
      
      Condition "1" is not very severe but "2" can happen often and is
      definitely good at degrading Redis performances in an unexpected way.
      
      The two commits have the effect of always spawning RDB savings for
      replication in replicationCron() instead of attempting to start an RDB
      save synchronously. Moreover when a BGSAVE or AOF rewrite must be
      performed, they are instead just postponed using flags that will try to
      perform such operations ASAP.
      
      Finally the BGSAVE command was modified in order to accept a SCHEDULE
      option so that if an AOF rewrite is in progress, when this option is
      given, the command no longer returns an error, but instead schedules an
      RDB rewrite operation for when it will be possible to start it.
      0a628e51
  10. 21 7月, 2016 1 次提交
  11. 20 7月, 2016 1 次提交
  12. 15 7月, 2016 1 次提交
  13. 13 7月, 2016 1 次提交
    • A
      LRU: Make cross-database choices for eviction. · e423f76e
      antirez 提交于
      The LRU eviction code used to make local choices: for each DB visited it
      selected the best key to evict. This was repeated for each DB. However
      this means that there could be DBs with very frequently accessed keys
      that are targeted by the LRU algorithm while there were other DBs with
      many better candidates to expire.
      
      This commit attempts to fix this problem for the LRU policy. However the
      TTL policy is still not fixed by this commit. The TTL policy will be
      fixed in a successive commit.
      
      This is an initial (partial because of TTL policy) fix for issue #2647.
      e423f76e
  14. 12 7月, 2016 2 次提交
  15. 06 7月, 2016 1 次提交
  16. 04 7月, 2016 1 次提交
  17. 01 7月, 2016 1 次提交
  18. 23 6月, 2016 1 次提交
  19. 21 6月, 2016 1 次提交
  20. 14 6月, 2016 1 次提交
  21. 13 6月, 2016 2 次提交
  22. 05 6月, 2016 2 次提交
  23. 04 6月, 2016 1 次提交
  24. 01 6月, 2016 1 次提交
  25. 18 5月, 2016 1 次提交
  26. 10 5月, 2016 6 次提交