summaryrefslogtreecommitdiff
path: root/runtest-moduleapi
diff options
context:
space:
mode:
author郭伟光 <warriorguo@gmail.com>2022-02-01 20:54:11 +0800
committerGitHub <noreply@github.com>2022-02-01 14:54:11 +0200
commit6b5b3ca4148b058210f7c32096a6d1201a2121d9 (patch)
tree35b729a29bac6dfef44f473439580f079461ee0d /runtest-moduleapi
parent6ca97da0fcea4c260e656c3a05b12c34e5a4d63d (diff)
downloadredis-6b5b3ca4148b058210f7c32096a6d1201a2121d9.tar.gz
forbid module to unload when it holds ongoing timer (#10187)
This is done to avoid a crash when the timer fires after the module was unloaded. Or memory leaks in case we wanted to just ignore the timer. It'll cause the MODULE UNLOAD command to return with an error Co-authored-by: sundb <sundbcn@gmail.com>
Diffstat (limited to 'runtest-moduleapi')
-rwxr-xr-xruntest-moduleapi1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtest-moduleapi b/runtest-moduleapi
index 8b4b108de..d13425f81 100755
--- a/runtest-moduleapi
+++ b/runtest-moduleapi
@@ -45,5 +45,6 @@ $TCLSH tests/test_helper.tcl \
--single unit/moduleapi/subcommands \
--single unit/moduleapi/reply \
--single unit/moduleapi/eventloop \
+--single unit/moduleapi/timer \
"${@}"