antirez
6a2a1d9a00
Modules: updated function doc after #7003 .
2020-03-23 11:17:50 +01:00
Salvatore Sanfilippo
47f3bca574
Merge pull request #7003 from guybe7/rm_context_flags_handle_null
...
Allow RM_GetContextFlags to work with ctx==NULL
2020-03-23 11:15:42 +01:00
Guy Benoish
44c3c39dde
Allow RM_GetContextFlags to work with ctx==NULL
2020-03-18 18:34:27 +05:30
Salvatore Sanfilippo
5c2babe9c5
Merge pull request #6918 from chendq8/fixModuleUnregisterUsedApi
...
Fix module unregister used api
2020-03-13 12:46:27 +01:00
antirez
7e8637d87e
Modules: reformat RM_Scan() top comment a bit.
2020-02-28 18:09:46 +01:00
antirez
720a07805e
Modules: more details in RM_Scan API top comment.
2020-02-28 18:06:30 +01:00
Salvatore Sanfilippo
644c244e17
Merge pull request #6838 from oranagra/rm_scan_dict_rehash
...
RM_Scan disable dict rehashing
2020-02-28 17:47:52 +01:00
Salvatore Sanfilippo
8d61c49b98
Merge pull request #6828 from guybe7/module_string_from_double
...
Add RM_CreateStringFromDouble
2020-02-28 11:06:02 +01:00
Salvatore Sanfilippo
b0122a1d97
Merge pull request #6893 from oranagra/api_doc_aux_save
...
module api docs for aux_save and aux_load
2020-02-28 10:22:53 +01:00
Salvatore Sanfilippo
b3bc0f1082
Merge pull request #6876 from MeirShpilraien/changed_log_level_of_module_fork_api
...
Changed log level for module fork api from 'notice' to 'verbos'.
2020-02-27 10:26:55 +01:00
Salvatore Sanfilippo
fe73488aa0
Merge pull request #6919 from ashtul/Fix-ThreadSafeContext-functions-names
...
fix ThreadSafeContext lock/unlock function names
2020-02-27 10:01:48 +01:00
Guy Benoish
462ba8df88
Modules: Do not auto-unblock clients if not blocked on keys
2020-02-23 19:36:46 +05:30
Ariel
10d0166fea
fix ThreadSafeContext lock/unlock function names
2020-02-22 23:49:23 +02:00
chendianqiang
698be7ee6a
use correct list for moduleUnregisterUsedAPI
2020-02-22 15:03:01 +08:00
Oran Agra
4006d36600
module api docs for aux_save and aux_load
2020-02-16 15:43:19 +02:00
Salvatore Sanfilippo
948c09c29a
Merge pull request #6863 from oranagra/module_commands_no_slowlog
...
add no-slowlog option to RM_CreateCommand
2020-02-13 17:02:19 +01:00
meir@redislabs.com
054932343e
Changed log level for module fork api from 'notice' to 'verbos'.
2020-02-10 12:10:32 +02:00
Oran Agra
0cacccddc3
add no-slowlog option to RM_CreateCommand
2020-02-06 15:06:33 +02:00
Oran Agra
f390ad6d51
RM_Scan disable dict rehashing
...
The callback approach we took is very efficient, the module can do any
filtering of keys without building any list and cloning strings, it can
also read data from the key's value. but if the user tries to re-open
the key, or any other key, this can cause dict re-hashing (dictFind does
that), and that's very bad to do from inside dictScan.
this commit protects the dict from doing any rehashing during scan, but
also warns the user not to attempt any writes or command calls from
within the callback, for fear of unexpected side effects and crashes.
2020-02-06 11:48:12 +02:00
Salvatore Sanfilippo
7d10c95786
Merge pull request #6821 from guybe7/key_miss_notify
...
Exclude "keymiss" notification from NOTIFY_ALL
2020-02-06 10:43:05 +01:00
Salvatore Sanfilippo
4bf051d4d2
Merge pull request #6837 from oranagra/signal_modified_key_doc
...
update RM_SignalModifiedKey doc comment
2020-02-06 10:38:36 +01:00
Salvatore Sanfilippo
1056e09940
Merge pull request #6846 from oranagra/module_client_flags
...
Fix client flags to be int64 in module.c
2020-02-06 10:32:35 +01:00
Oran Agra
01eadbd6e1
moduleRDBLoadError, add key name, and use panic rather than exit
...
using panic rather than exit means you get s stack trace of the code
path that experianced the error, and possibly other info.
2020-02-06 09:37:04 +02:00
Oran Agra
4050c57139
Fix client flags to be int64 in module.c
...
currently there's no bug since the flags these functions handle are
always lower than 32bit, but still better fix the type to prevent future
bugs.
2020-02-06 09:33:20 +02:00
Oran Agra
13a7379024
update RM_SignalModifiedKey doc comment
2020-02-05 18:15:38 +02:00
Guy Benoish
a0d45826a3
Add RM_CreateStringFromDouble
2020-02-04 19:28:09 +05:30
Oran Agra
f5d37082ca
fix uninitialized info_cb var in module.c
2020-02-03 16:35:39 +02:00
Guy Benoish
2492bdc90b
Exclude "keymiss" notification from NOTIFY_ALL
...
Because "keymiss" is "special" compared to the rest of
the notifications (Trying not to break existing apps
using the 'A' format for notifications)
Also updated redis.conf and module.c docs
2020-02-03 15:43:44 +05:30
Salvatore Sanfilippo
541a667c77
Merge pull request #6812 from guybe7/str_convert_fix
...
ld2string should fail if string contains \0 in the middle
2020-01-30 17:51:04 +01:00
Guy Benoish
3fd717daee
ld2string should fail if string contains \0 in the middle
...
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).
2020-01-30 18:15:17 +05:30
antirez
2ed300b786
Add more info in the unblockClientFromModule() function.
2020-01-29 12:47:50 +01:00
Salvatore Sanfilippo
d0bb1e572f
Merge pull request #6699 from guybe7/module_blocked_on_key_timeout_memleak
...
Modules: Fix blocked-client-related memory leak
2020-01-29 12:06:14 +01:00
Guy Benoish
fe65141135
Modules: Fix blocked-client-related memory leak
...
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
2019-12-30 10:10:59 +05:30
Yossi Gottlieb
7ca3d5db5f
Add REDISMODULE_CTX_FLAGS_MULTI_DIRTY.
2019-12-23 19:43:51 +02:00
antirez
1d353f171b
Fix ip and missing mode in RM_GetClusterNodeInfo().
2019-12-20 12:29:02 +01:00
Salvatore Sanfilippo
95a43c2178
Merge pull request #6615 from soloestoy/wrap-also-propagate-as-multi
...
Wrap also propagate as multi
2019-12-19 09:24:52 +01:00
antirez
15e2c2b2f1
Modules: rewrite top function doc of AvoidReplicaTraffic().
2019-12-18 17:11:03 +01:00
Salvatore Sanfilippo
f9644f1903
Merge pull request #6497 from oranagra/avoid_replica_traffic
...
Add config and module API for AvoidReplicaTraffic
2019-12-18 17:06:05 +01:00
antirez
75687fcf17
Avoid changing setKey() API after #6679 fix.
2019-12-18 11:58:02 +01:00
zhaozhao.zz
746c23419f
add a new SET option KEEPTTL that doesn't remove expire time
2019-12-18 15:20:36 +08:00
Salvatore Sanfilippo
8912e70042
Merge pull request #5916 from madolson/dev-unstable-acl-module-pr
...
Add module APIs for custom authentication
2019-12-17 09:58:26 +01:00
Madelyn Olson
1ce271b9b4
Split error message so dependandent callers give a useful result
2019-12-16 23:34:37 -08:00
Madelyn Olson
35aed09f95
Added better exception handling around scripting and module
2019-12-16 23:33:53 -08:00
Madelyn Olson
783831bb10
Tweaking the documentation
2019-12-17 07:28:55 +00:00
Madelyn Olson
05b7628687
Add module APIs for custom authentication
2019-12-17 06:59:59 +00:00
antirez
caba0f876e
Merge branch 'unstable' of github.com:/antirez/redis into unstable
2019-12-16 11:18:20 +01:00
antirez
c600118cfb
Modules: allow to execute RM_Call() from the module init function.
2019-12-13 17:34:37 +01:00
Yossi Gottlieb
937a32d84c
Improve RM_ModuleTypeReplaceValue() API.
...
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.
2019-12-12 18:50:11 +02:00
antirez
22552a5794
Remove useless space from moduleLoad().
2019-12-12 09:29:10 +01:00
Salvatore Sanfilippo
f1f0548419
Merge branch 'unstable' into ModuleSecurity
2019-12-12 09:27:14 +01:00