From b4be94a2049f0522027e70dcfc32eeb316cccbfd Mon Sep 17 00:00:00 2001 From: xiyoo0812 Date: Wed, 8 Nov 2023 19:20:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/cache/document.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cache/document.lua b/server/cache/document.lua index a73c2b53..d8ded303 100644 --- a/server/cache/document.lua +++ b/server/cache/document.lua @@ -118,12 +118,12 @@ function Document:update() local channel = makechan("doc update") --清理缓存 channel:push(function() + self.flushing = false local rcode, rres = redis_mgr:execute(MAIN_DBID, "DEL", self.hotkey) if qfailed(rcode) then log_err("[Document][update] del failed: {}=> hotkey: {}", rres, self.hotkey) return false, rcode end - self.flushing = false return true, SUCCESS end) channel:push(function() @@ -172,7 +172,7 @@ function Document:update_field(field, field_data) local fields = self:set_field(field, field_data) if fields then self:update_redis(fields) - end + end else self.datas = field_data self:check_primary(self.datas, self.primary_key)