1. 11 Sep, 2012 1 commit
    • antirez's avatar
      Make sure that SELECT argument is an integer or return an error. · bfc197c3
      antirez authored
      Unfortunately we had still the lame atoi() without any error checking in
      place, so "SELECT foo" would work as "SELECT 0". This was not an huge
      problem per se but some people expected that DB can be strings and not
      just numbers, and without errors you get the feeling that they can be
      numbers, but not the behavior.
      
      Now getLongFromObjectOrReply() is used as almost everybody else across
      the code, generating an error if the number is not an integer or
      overflows the long type.
      
      Thanks to @mipearson for reporting that on Twitter.
      bfc197c3
  2. 01 May, 2012 1 commit
    • Pieter Noordhuis's avatar
      Use safe dictionary iterator from KEYS · cc4f65fe
      Pieter Noordhuis authored
      Every matched key in a KEYS call is checked for expiration. When the key
      is set to expire, the call to `getExpire` will assert that the key also
      exists in the main dictionary. This in turn causes a rehashing step to
      be executed. Rehashing a dictionary when there is an iterator active may
      result in the iterator emitting duplicate entries, or not emitting some
      entries at all. By using a safe iterator, the rehash step is omitted.
      cc4f65fe
  3. 07 Apr, 2012 1 commit
  4. 05 Apr, 2012 3 commits
  5. 27 Mar, 2012 2 commits
  6. 04 Feb, 2012 1 commit
  7. 01 Feb, 2012 1 commit
  8. 30 Jan, 2012 1 commit
  9. 21 Dec, 2011 3 commits
  10. 18 Nov, 2011 1 commit
  11. 10 Nov, 2011 1 commit
  12. 09 Nov, 2011 2 commits
  13. 08 Nov, 2011 1 commit
  14. 17 Oct, 2011 2 commits
  15. 10 Oct, 2011 1 commit
  16. 04 Oct, 2011 1 commit
  17. 07 Jul, 2011 2 commits
  18. 25 Jun, 2011 1 commit
  19. 20 Jun, 2011 1 commit
  20. 05 May, 2011 1 commit
  21. 29 Apr, 2011 1 commit
  22. 28 Apr, 2011 1 commit
  23. 29 Mar, 2011 1 commit
  24. 28 Mar, 2011 3 commits
  25. 23 Mar, 2011 1 commit
  26. 04 Mar, 2011 1 commit
  27. 14 Jan, 2011 1 commit
  28. 09 Jan, 2011 1 commit
  29. 07 Jan, 2011 1 commit
  30. 03 Jan, 2011 1 commit