From 43a3dfd9bd5401173543f59ffbff34fa6cf89ddd Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 18 Oct 2022 01:48:18 +0800 Subject: [PATCH] Update webstats_common.lua --- plugins/webstats/lua/webstats_common.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index a7b660649..9cddace75 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -404,13 +404,13 @@ function _M.store_logs_line(self, db, stmt, input_sn, info) client_port=client_port, } - -- local res, err = stmt:step() + local res, err = stmt:step() if tostring(res) == "5" then self:D("step res:"..tostring(res) ..",step err:"..tostring(err)) self:D("the step database connection is busy, so it will be stored later.") return false end - -- stmt:reset() + stmt:reset() local res ,err = self:update_stat( db, "client_stat", time_key, client_stat_fields) -- self:D("step res:"..tostring(res) ..",step err:"..tostring(err))