1. 15 3月, 2013 5 次提交
  2. 14 3月, 2013 8 次提交
  3. 13 3月, 2013 10 次提交
  4. 12 3月, 2013 1 次提交
  5. 11 3月, 2013 3 次提交
    • A
      activeExpireCycle() smarter with many DBs and under expire pressure. · 2d851333
      antirez 提交于
      activeExpireCycle() tries to test just a few DBs per iteration so that
      it scales if there are many configured DBs in the Redis instance.
      However this commit makes it a bit smarter when one a few of those DBs
      are under expiration pressure and there are many many keys to expire.
      
      What we do is to remember if in the last iteration had to return because
      we ran out of time. In that case the next iteration we'll test all the
      configured DBs so that we are sure we'll test again the DB under
      pressure.
      
      Before of this commit after some mass-expire in a given DB the function
      tested just a few of the next DBs, possibly empty, a few per iteration,
      so it took a long time for the function to reach again the DB under
      pressure. This resulted in a lot of memory being used by already expired
      keys and never accessed by clients.
      2d851333
    • A
      In databasesCron() never test more DBs than we have. · 08b107e4
      antirez 提交于
      08b107e4
    • A
      Make comment name match var name in activeExpireCycle(). · 4b1ccdfd
      antirez 提交于
      4b1ccdfd
  6. 09 3月, 2013 4 次提交
  7. 08 3月, 2013 3 次提交
  8. 07 3月, 2013 4 次提交
  9. 06 3月, 2013 2 次提交
    • G
      Removed useless "return" statements in pubsub.c · 042ed270
      Gengliang Wang 提交于
      (original commit message edited)
      042ed270
    • A
      API to lookup commands with their original name. · 7b190a08
      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.
      7b190a08