Skip to content

Commit

Permalink
readd compact err
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Apr 12, 2024
1 parent 1bfbe6c commit 2e24219
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,12 @@ local function sync_data(self)
end
goto waitdir
end
if err == "compacted" then
self.need_reload = true
log.warn("waitdir [", self.key, "] err: ", err,
", will read the configuration again via readdir")
goto fail
end
::fail::
return false, err
end
Expand Down

0 comments on commit 2e24219

Please sign in to comment.