提交 8f3fd317 编写于 作者: C cruis

Fix 4298

Condition的clone方法,params存在共享内存,导致isCond死循环。
上级 c5c03815
......@@ -152,5 +152,8 @@ func (c *Condition) IsEmpty() bool {
// clone clone a condition
func (c Condition) clone() *Condition {
params := make([]condValue, len(c.params))
copy(params, c.params)
c.params = params
return &c
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册