1. 18 Jan, 2018 18 commits
  2. 09 Jan, 2018 12 commits
  3. 05 Jan, 2018 1 commit
  4. 05 Dec, 2017 4 commits
  5. 04 Dec, 2017 5 commits
    • antirez's avatar
      Redis 4.0.6. · 1980bcb7
      antirez authored
      1980bcb7
    • zhaozhao.zz's avatar
      57786b14
    • zhaozhao.zz's avatar
      2211540d
    • antirez's avatar
      Refactoring: improve luaCreateFunction() API. · c85c84be
      antirez authored
      The function in its initial form, and after the fixes for the PSYNC2
      bugs, required code duplication in multiple spots. This commit modifies
      it in order to always compute the script name independently, and to
      return the SDS of the SHA of the body: this way it can be used in all
      the places, including for SCRIPT LOAD, without duplicating the code to
      create the Lua function name. Note that this requires to re-compute the
      body SHA1 in the case of EVAL seeing a script for the first time, but
      this should not change scripting performance in any way because new
      scripts definition is a rare event happening the first time a script is
      seen, and the SHA1 computation is anyway not a very slow process against
      the typical Redis script and compared to the actua Lua byte compiling of
      the body.
      
      Note that the function used to assert() if a duplicated script was
      loaded, however actually now two times over three, we want the function
      to handle duplicated scripts just fine: this happens in SCRIPT LOAD and
      in RDB AUX "lua" loading. Moreover the assert was not defending against
      some obvious failure mode, so now the function always tests against
      already defined functions at start.
      c85c84be
    • antirez's avatar
      Remove useless variable check from luaCreateFunction(). · 85b24770
      antirez authored
      The block is already inside if (allow_dup).
      85b24770