You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues-translate-bot
changed the title
gdb: 在hook当中自定义缓存, Count方法获取值不正确
gdb: Customizing the cache in the hook, the value obtained by the Count method is incorrect
Jun 4, 2024
Go version
go1.20.14 windows/amd64
GoFrame version
2.7.1
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
What did you see happen?
gdb自带的缓存,再新增和修改后,无法及时的对缓存进行刷新,所以再提供的hook方法中自己添加了个缓存方法。但是运行过程中发现,使用count方法无法正常返回应有的值。
跟踪代码发现,count方法在hook之后会有特殊处理
导致返回缓存的值和count实际使用的不一样
What did you expect to see?
希望hook返回的是特殊修改后的值或者将 queryTypeValue, queryTypeCount 在hook中能获取到。
The text was updated successfully, but these errors were encountered: