You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/07/01 01:28:17 UTC
[incubator-apisix] branch master updated: bugfix(config etcd): when
we reset the fetched data, `sync_times` also needs to be reset. (#1785)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 3061aee bugfix(config etcd): when we reset the fetched data, `sync_times` also needs to be reset. (#1785)
3061aee is described below
commit 3061aeefa326a21c6b27db0d85cd6d485a3b58e1
Author: jackstraw <93...@qq.com>
AuthorDate: Wed Jul 1 09:28:00 2020 +0800
bugfix(config etcd): when we reset the fetched data, `sync_times` also needs to be reset. (#1785)
---
apisix/core/config_etcd.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/apisix/core/config_etcd.lua b/apisix/core/config_etcd.lua
index dd0a548..fbb6df8 100644
--- a/apisix/core/config_etcd.lua
+++ b/apisix/core/config_etcd.lua
@@ -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