This is an automated email from the ASF dual-hosted git repository.

baoyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new a269d61a5 fix: eliminate deepcopy when destroying prometheus (#12905)
a269d61a5 is described below

commit a269d61a5b115f9350293c47c2551597efc5487c
Author: Shreemaan Abhishek <[email protected]>
AuthorDate: Thu Jan 22 07:23:03 2026 +0545

    fix: eliminate deepcopy when destroying prometheus (#12905)
---
 apisix/plugins/prometheus/exporter.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apisix/plugins/prometheus/exporter.lua 
b/apisix/plugins/prometheus/exporter.lua
index ed219a49b..cfa56bfa1 100644
--- a/apisix/plugins/prometheus/exporter.lua
+++ b/apisix/plugins/prometheus/exporter.lua
@@ -809,7 +809,7 @@ end
 
 function _M.destroy()
     if prometheus ~= nil then
-        prometheus_bkp = core.table.deepcopy(prometheus)
+        prometheus_bkp = prometheus
         prometheus = nil
     end
 end

Reply via email to