bugfix(config etcd): when we reset the fetched data, sync_times also needs to be reset. (#1785)

This commit is contained in:
jackstraw 2020-07-01 09:28:00 +08:00 committed by GitHub
parent d787cbd55e
commit 3061aeefa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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