From 687210f1550cf9048bed5f5539c9411fb22cd3b0 Mon Sep 17 00:00:00 2001 From: "Meir Shpilraien (Spielrein)" Date: Thu, 16 Dec 2021 17:58:25 +0200 Subject: 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 --- src/functions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/functions.h') diff --git a/src/functions.h b/src/functions.h index 4a1ec4a24..66147f97c 100644 --- a/src/functions.h +++ b/src/functions.h @@ -105,6 +105,7 @@ unsigned long functionsMemoryOverhead(); int functionsLoad(rio *rdb, int ver); unsigned long functionsNum(); dict* functionsGet(); +size_t functionsLen(functionsCtx *functions_ctx); functionsCtx* functionsCtxGetCurrent(); functionsCtx* functionsCtxCreate(); void functionsCtxFree(functionsCtx *functions_ctx); -- cgit v1.2.1