From 5590acb9ee9ad7ff962fa17313a047c717b4b5a1 Mon Sep 17 00:00:00 2001 From: dhanyagowrish Date: Wed, 11 Jan 2023 14:05:03 +0530 Subject: [PATCH] MB-55053 : Fix UDF functions being loaded into cache every time the function is executed Change-Id: I90d0c042e7c154e282c4a6d5b9a9b7a0a8ba8275 Reviewed-on: https://review.couchbase.org/c/query/+/184782 Reviewed-by: Donald Haggart Reviewed-by: Marco Greco Tested-by: Dhanya Gowrish --- functions/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/functions.go b/functions/functions.go index aaead48e9..6662bf4ef 100644 --- a/functions/functions.go +++ b/functions/functions.go @@ -424,7 +424,7 @@ func ExecuteFunction(name FunctionName, modifiers Modifier, values []value.Value // note that since we reload the body outside of a cache lock (not to lock // out the whole cache bucket), there might be some temporary pile up on // storage - if name.CheckStorage() { + if entry.FunctionName.CheckStorage() { var tag atomic.AlignedInt64 // reserve a change counter and load new body