shuaijinchao commented on issue #4077: URL: https://github.com/apache/apisix/issues/4077#issuecomment-968305357
@chzhuo Thanks, I reproduced the problem. The reason for this problem is that when healthcheck fills the default value, the table object in the `defaults` variable is directly assigned to the `opts` variable, while the shallow copy used in the table type variable assignment in Lua. So when using `to_set` to update the `opts` variable, the `defaults` variable will also be affected, because the memory address of the operation is the same. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
