1. 26 6月, 2013 12 次提交
    • A
      SCRIPT FLUSH comment minor pedantic improvement. · b7233f40
      antirez 提交于
      b7233f40
    • A
      Move Replication Script Cache initialization in safer place. · 8450d6e2
      antirez 提交于
      It should be called just one time at startup and not every time the Lua
      scripting engine is re-initialized, otherwise memory is leaked.
      8450d6e2
    • A
      Use the RSC to replicate EVALSHA unmodified. · 545fe0c3
      antirez 提交于
      This commit uses the Replication Script Cache in order to avoid
      translating EVALSHA into EVAL whenever possible for both the AOF and
      slaves.
      545fe0c3
    • A
      Replication of scripts as EVALSHA: sha1 caching implemented. · 9d894b1b
      antirez 提交于
      This code is only responsible to take an LRU-evicted fixed length cache
      of SHA1 that we are sure all the slaves received.
      
      In this commit only the implementation is provided, but the Redis core
      does not use it to actually send EVALSHA to slaves when possible.
      9d894b1b
    • A
      New API to force propagation. · 8328d993
      antirez 提交于
      The old REDIS_CMD_FORCE_REPLICATION flag was removed from the
      implementation of Redis, now there is a new API to force specific
      executions of a command to be propagated to AOF / Replication link:
      
          void forceCommandPropagation(int flags);
      
      The new API is also compatible with Lua scripting, so a script that will
      execute commands that are forced to be propagated, will also be
      propagated itself accordingly even if no change to data is operated.
      
      As a side effect, this new design fixes the issue with scripts not able
      to propagate PUBLISH to slaves (issue #873).
      8328d993
    • A
      Allow PUBSUB NUMSUB without channels. · aeab473d
      antirez 提交于
      The result is an empty list but it is handy to call it programmatically.
      aeab473d
    • A
      PUBSUB command implemented. · a8f1474d
      antirez 提交于
      Currently it implements three subcommands:
      
      PUBSUB CHANNELS [<pattern>]    List channels with non-zero subscribers.
      PUBSUB NUMSUB [channel_1 ...]  List number of subscribers for channels.
      PUBSUB NUMPAT                  Return number of subscribed patterns.
      a8f1474d
    • A
      Fix comment typo in integration/aof.tcl. · 72d3fbea
      antirez 提交于
      72d3fbea
    • Y
      don't assume time_t == long · 3642557a
      YAMAMOTO Takashi 提交于
      time_t is always 64bit on recent versions of NetBSD.
      3642557a
    • Y
      use nanosleep instead of usleep · 30f3ae03
      YAMAMOTO Takashi 提交于
      SUSv3 says that:
      	The useconds argument shall be less than one million. If the value of
      	useconds is 0, then the call has no effect.
      and actually NetBSD's implementation rejects such a value with EINVAL.
      use nanosleep which has no such a limitation instead.
      30f3ae03
    • Y
      rename popcount to popcount_binary to avoid a conflict with NetBSD libc · f27896a1
      YAMAMOTO Takashi 提交于
      NetBSD-current's libc has a function named popcount.
      hiding these extensions using feature macros is not possible because
      redis uses other extensions covered by the same feature macro.
      eg. inet_aton
      f27896a1
    • Y
      don't define _XOPEN_SOURCE for NetBSD · 9a7b09ed
      YAMAMOTO Takashi 提交于
      on NetBSD, defining _XOPEN_SOURCE hides extensions
      like inet_aton, strcasecmp, etc.
      9a7b09ed
  2. 20 6月, 2013 4 次提交
  3. 19 6月, 2013 5 次提交
  4. 04 6月, 2013 1 次提交
  5. 01 6月, 2013 1 次提交
  6. 31 5月, 2013 5 次提交
  7. 30 5月, 2013 6 次提交
  8. 28 5月, 2013 2 次提交
  9. 27 5月, 2013 4 次提交