summaryrefslogtreecommitdiff
path: root/tests/support
diff options
context:
space:
mode:
authorMeir Shpilraien (Spielrein) <meir@redis.com>2021-12-16 17:58:25 +0200
committerGitHub <noreply@github.com>2021-12-16 17:58:25 +0200
commit687210f1550cf9048bed5f5539c9411fb22cd3b0 (patch)
tree6bd085128bbc5203edb46c61c41f0d74c0967b5d /tests/support
parentffbe36fc3ee824407b3818c0a6f861176ce56482 (diff)
downloadredis-687210f1550cf9048bed5f5539c9411fb22cd3b0.tar.gz
Add FUNCTION FLUSH command to flush all functions (#9936)
Added `FUNCTION FLUSH` command. The new sub-command allows delete all the functions. An optional `[SYNC|ASYNC]` argument can be given to control whether or not to flush the functions synchronously or asynchronously. if not given the default flush mode is chosen by `lazyfree-lazy-user-flush` configuration values. Add the missing `functions.tcl` test to the list of tests that are executed in test_helper.tcl, and call FUNCTION FLUSH in between servers in external mode
Diffstat (limited to 'tests/support')
-rw-r--r--tests/support/server.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/support/server.tcl b/tests/support/server.tcl
index 4c63d7b3a..ee39c8df9 100644
--- a/tests/support/server.tcl
+++ b/tests/support/server.tcl
@@ -343,6 +343,7 @@ proc run_external_server_test {code overrides} {
}
r flushall
+ r function flush
# store overrides
set saved_config {}