1. 23 11月, 2012 1 次提交
  2. 22 11月, 2012 7 次提交
    • A
      EVALSHA is now case insensitive. · 95f68f7b
      antirez 提交于
      EVALSHA used to crash if the SHA1 was not lowercase (Issue #783).
      Fixed using a case insensitive dictionary type for the sha -> script
      map used for replication of scripts.
      95f68f7b
    • A
      Fix integer overflow in zunionInterGenericCommand(). · cceb0c5b
      antirez 提交于
      This fixes issue #761.
      cceb0c5b
    • A
      Test: MULTI state is cleared after EXECABORT error. · 65606b3b
      antirez 提交于
      65606b3b
    • A
      4977ab79
    • A
      Test: MULTI/EXEC tests moved into multi.tcl. · 9c00f078
      antirez 提交于
      9c00f078
    • A
      Safer handling of MULTI/EXEC on errors. · 3d139127
      antirez 提交于
      After the transcation starts with a MULIT, the previous behavior was to
      return an error on problems such as maxmemory limit reached. But still
      to execute the transaction with the subset of queued commands on EXEC.
      
      While it is true that the client was able to check for errors
      distinguish QUEUED by an error reply, MULTI/EXEC in most client
      implementations uses pipelining for speed, so all the commands and EXEC
      are sent without caring about replies.
      
      With this change:
      
      1) EXEC fails if at least one command was not queued because of an
      error. The EXECABORT error is used.
      2) A generic error is always reported on EXEC.
      3) The client DISCARDs the MULTI state after a failed EXEC, otherwise
      pipelining multiple transactions would be basically impossible:
      After a failed EXEC the next transaction would be simply queued as
      the tail of the previous transaction.
      3d139127
    • A
      Make bio.c threads killable ASAP if needed. · 75369917
      antirez 提交于
      We use this new bio.c feature in order to stop our I/O threads if there
      is a memory test to do on crash. In this case we don't want anything
      else than the main thread to run, otherwise the other threads may mess
      with the heap and the memory test will report a false positive.
      75369917
  3. 21 11月, 2012 2 次提交
  4. 19 11月, 2012 2 次提交
    • A
      Children creating AOF or RDB files now report memory used by COW. · 49b64523
      antirez 提交于
      Finally Redis is able to report the amount of memory used by
      copy-on-write while saving an RDB or writing an AOF file in background.
      
      Note that this information is currently only logged (at NOTICE level)
      and not shown in INFO because this is less trivial (but surely doable
      with some minor form of interprocess communication).
      
      The reason we can't capture this information on the parent before we
      call wait3() is that the Linux kernel will release the child memory
      ASAP, and only retain the minimal state for the process that is useful
      to report the child termination to the parent.
      
      The COW size is obtained by summing all the Private_Dirty fields found
      in the "smap" file inside the proc filesystem for the process.
      
      All this is Linux specific and is not available on other systems.
      49b64523
    • A
      zmalloc_get_private_dirty() function added (Linux only). · 3bfeb9c1
      antirez 提交于
      For non Linux systmes it just returns 0.
      
      This function is useful to estimate copy-on-write because of childs
      saving stuff on disk.
      3bfeb9c1
  5. 14 11月, 2012 5 次提交
  6. 13 11月, 2012 2 次提交
    • A
      TTL API change: TTL returns -2 for non existing keys. · aa2bf6ba
      antirez 提交于
      The previous behavior was to return -1 if:
      
      1) Existing key but without an expire set.
      2) Non existing key.
      
      Now the second case is handled in a different, and TTL will return -2
      if the key does not exist at all.
      
      PTTL follows the same behavior as well.
      aa2bf6ba
    • A
      MIGRATE: fix default timeout to 1000 milliseconds. · 05705bc8
      antirez 提交于
      When a timeout <= 0 is provided we set a default timeout of 1 second.
      It was set to 1 millisecond for an error resulting from a recent change.
      05705bc8
  7. 12 11月, 2012 3 次提交
  8. 09 11月, 2012 3 次提交
  9. 07 11月, 2012 3 次提交
    • A
      COPY and REPLACE options for MIGRATE. · 1237d71c
      antirez 提交于
      With COPY now MIGRATE does not remove the key from the source instance.
      With REPLACE it uses RESTORE REPLACE on the target host so that even if
      the key already eixsts in the target instance it will be overwritten.
      
      The options can be used together.
      1237d71c
    • A
      REPLACE option for RESTORE. · e5b5763f
      antirez 提交于
      The REPLACE option deletes an existing key with the same name (if any)
      and materializes the new one. The default behavior without RESTORE is to
      return an error if a key already exists.
      e5b5763f
    • A
      Type mismatch errors are now prefixed with WRONGTYPE. · c4b0b685
      antirez 提交于
      So instead to reply with a generic error like:
      
      -ERR ... wrong kind of value ...
      
      now it replies with:
      
      -WRONGTYPE ... wrong kind of value ...
      
      This makes this particular error easy to check without resorting to
      (fragile) pattern matching of the error string (however the error string
      used to be consistent already).
      
      Client libraries should return a specific exeption type for this error.
      
      Most of the commit is about fixing unit tests.
      c4b0b685
  10. 02 11月, 2012 4 次提交
  11. 01 11月, 2012 2 次提交
  12. 31 10月, 2012 4 次提交
  13. 26 10月, 2012 2 次提交