redis/tests/unit/moduleapi
uriyage 39e5a6fa2f Module CLIENT_CHANGE, Fix crash on free blocked client with DB!=0 (#11500)
In moduleFireServerEvent we change the real client DB to 0 on freeClient in case the event is REDISMODULE_EVENT_CLIENT_CHANGE.
It results in a crash if the client is blocked on a key on other than DB 0.

The DB change is not necessary even for module-client, as we set its DB to 0 on either createClient or moduleReleaseTempClient.

Co-authored-by: Madelyn Olson <34459052+madolson@users.noreply.github.com>
Co-authored-by: Binbin <binloveplay1314@qq.com>
Co-authored-by: Oran Agra <oran@redislabs.com>
(cherry picked from commit e4eb18b303)
2022-12-12 17:02:54 +02:00
..
auth.tcl Add module APIs for custom authentication 2019-12-17 06:59:59 +00:00
basics.tcl Fix failing basics moduleapi test on 32bit CI (#9140) 2021-07-21 21:06:49 +03:00
blockedclient.tcl Fix and improve module error reply statistics (#10278) 2022-04-27 16:31:52 +03:00
blockonbackground.tcl Fix CLIENT UNBLOCK crashing modules. (#9167) 2021-07-21 21:06:49 +03:00
blockonkeys.tcl Test that module can wake up module blocked on non-empty list key (#8382) 2021-01-22 16:19:37 +02:00
cluster.tcl fix new cluster tests issues (#9657) 2022-04-27 16:31:52 +03:00
commandfilter.tcl Add runtest-moduleapi with commandfilter coverage. 2019-03-24 12:03:03 +02:00
datatype.tcl Add module data-type support for COPY. (#8112) 2020-12-09 20:22:45 +02:00
defrag.tcl Tests: fix new defrag test to be skipped when not supported (#8185) 2020-12-14 11:13:46 +02:00
fork.tcl fix race in module api test for fork 2020-02-23 16:48:37 +02:00
getkeys.tcl Modules: add RM_GetCommandKeys(). 2020-10-11 16:04:14 +03:00
hash.tcl Modules: In RM_HashSet, add COUNT_ALL flag and set errno (#8446) 2021-02-15 11:40:05 +02:00
hooks.tcl Module CLIENT_CHANGE, Fix crash on free blocked client with DB!=0 (#11500) 2022-12-12 17:02:54 +02:00
infotest.tcl Escape unsafe field name characters in INFO. (#8492) 2021-02-15 17:08:53 +02:00
keyspace_events.tcl Modules: adding a module type for key space notification (#8759) 2021-04-19 21:33:26 +03:00
misc.tcl fix: call CLIENT INFO from redis module will crash the server (#8560) 2021-03-01 08:18:14 +02:00
propagate.tcl Modules: Replicate lazy-expire even if replication is not allowed (#8816) 2021-04-19 17:16:02 +03:00
scan.tcl Fix RM_ScanKey module api not to return int encoded strings 2020-06-14 11:20:15 +03:00
stream.tcl Add modules API for streams (#8288) 2021-01-28 16:19:43 +02:00
test_lazyfree.tcl Modules callbacks for lazy free effort, and unlink (#7912) 2020-11-16 10:34:04 +02:00
testrdb.tcl test infra - reduce disk space usage 2020-09-06 09:59:19 +03:00
timer.tcl Add timer module API tests. (#8041) 2020-11-11 22:57:33 +02:00
zset.tcl RM_ZsetRem: Delete key if empty (#8453) 2021-02-05 19:54:01 +02:00