Skip to content

Commit

Permalink
bugfix(config etcd): when we reset the fetched data, sync_times als…
Browse files Browse the repository at this point in the history
…o needs to be reset. (#1785)
  • Loading branch information
wangxiaochuang authored Jul 1, 2020
1 parent d787cbd commit 3061aee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apisix/core/config_etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ local function sync_data(self)
key = short_key(self, self.values[i].key)
self.values_hash[key] = i
end
self.sync_times = 0
end

self.conf_version = self.conf_version + 1
Expand Down

0 comments on commit 3061aee

Please sign in to comment.