spacewander commented on a change in pull request #3372:
URL: https://github.com/apache/apisix/pull/3372#discussion_r561589660



##########
File path: apisix/core/config_etcd.lua
##########
@@ -241,7 +241,11 @@ local function sync_data(self)
 
         else
             if not dir_res.nodes then
-                dir_res.nodes = {}
+                if dir_res.key then
+                    dir_res.nodes = { clone_tab(dir_res) }
+                else
+                    dir_res.nodes = {}
+                end

Review comment:
       Should remove the keys: 
https://github.com/apache/apisix/blob/aff1a907a3671bd6610b304a54ebef47022ca6cf/apisix/cli/etcd.lua#L206
   to see if this idea works.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to