Skip to content

Commit

Permalink
临时修复代码
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed Nov 8, 2023
1 parent 333d787 commit b4be94a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/cache/document.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b4be94a

Please sign in to comment.