1. 05 3月, 2020 2 次提交
  2. 28 2月, 2020 4 次提交
  3. 12 2月, 2020 4 次提交
  4. 04 2月, 2020 4 次提交
    • O
      fix uninitialized info_cb var in module.c · ec0c61da
      Oran Agra 提交于
      ec0c61da
    • G
      ld2string should fail if string contains \0 in the middle · 6fe55c2f
      Guy Benoish 提交于
      This bug affected RM_StringToLongDouble and HINCRBYFLOAT.
      I added tests for both cases.
      
      Main changes:
      1. Fixed string2ld to fail if string contains \0 in the middle
      2. Use string2ld in getLongDoubleFromObject - No point of
         having duplicated code here
      
      The two changes above broke RM_SaveLongDouble/RM_LoadLongDouble
      because the long double string was saved with length+1 (An innocent
      mistake, but it's actually a bug - The length passed to
      RM_SaveLongDouble should not include the last \0).
      6fe55c2f
    • A
      Add more info in the unblockClientFromModule() function. · bbce3ba9
      antirez 提交于
      bbce3ba9
    • G
      Modules: Fix blocked-client-related memory leak · 40295fb3
      Guy Benoish 提交于
      If a blocked module client times-out (or disconnects, unblocked
      by CLIENT command, etc.) we need to call moduleUnblockClient
      in order to free memory allocated by the module sub-system
      and blocked-client private data
      
      Other changes:
      Made blockedonkeys.tcl tests a bit more aggressive in order
      to smoke-out potential memory leaks
      40295fb3
  5. 10 1月, 2020 1 次提交
  6. 29 12月, 2019 1 次提交
  7. 19 12月, 2019 1 次提交
  8. 18 12月, 2019 2 次提交
  9. 17 12月, 2019 4 次提交
  10. 14 12月, 2019 1 次提交
  11. 13 12月, 2019 1 次提交
    • Y
      Improve RM_ModuleTypeReplaceValue() API. · 0283db58
      Yossi Gottlieb 提交于
      With the previous API, a NULL return value was ambiguous and could
      represent either an old value of NULL or an error condition. The new API
      returns a status code and allows the old value to be returned
      by-reference.
      
      This commit also includes test coverage based on
      tests/modules/datatype.c which did not exist at the time of the original
      commit.
      0283db58
  12. 12 12月, 2019 2 次提交
  13. 11 12月, 2019 1 次提交
  14. 09 12月, 2019 1 次提交
  15. 05 12月, 2019 1 次提交
  16. 03 12月, 2019 1 次提交
  17. 22 11月, 2019 2 次提交
  18. 21 11月, 2019 1 次提交
  19. 19 11月, 2019 1 次提交
  20. 14 11月, 2019 3 次提交
  21. 11 11月, 2019 2 次提交
    • O
      Add RM_ScanKey to scan hash, set, zset, changes to RM_Scan API · 0f8692b4
      Oran Agra 提交于
      - Adding RM_ScanKey
      - Adding tests for RM_ScanKey
      - Refactoring RM_Scan API
      
      Changes in RM_Scan
      - cleanup in docs and coding convention
      - Moving out of experimantal Api
      - Adding ctx to scan callback
      - Dont use cursor of -1 as an indication of done (can be a valid cursor)
      - Set errno when returning 0 for various reasons
      - Rename Cursor to ScanCursor
      - Test filters key that are not strings, and opens a key if NULL
      0f8692b4
    • M
      Added scan implementation to module api. · 11c6ce81
      meir@redislabs.com 提交于
      The implementation expose the following new functions:
      1. RedisModule_CursorCreate - allow to create a new cursor object for
      keys scanning
      2. RedisModule_CursorRestart - restart an existing cursor to restart the
      scan
      3. RedisModule_CursorDestroy - destroy an existing cursor
      4. RedisModule_Scan - scan keys
      
      The RedisModule_Scan function gets a cursor object, a callback and void*
      (used as user private data).
      The callback will be called for each key in the database proving the key
      name and the value as RedisModuleKey.
      11c6ce81