os/gcache: dead lock when another GetOrSetFuncLock in former GetOrSetFuncLock's f function #4145
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
enhancement
help wanted
planned
This issue/proposal is planned into our next steps.
Go version
1.23.4
GoFrame version
2.8.3
Can this bug be reproduced with the latest release?
Yes
What did you do?
demo codes:
What did you see happen?
dead lock when calling GetTest2Cached
What did you expect to see?
I need to get some cached data as db query params, then save results in another cache key.
both need to use GetOrSetFuncLock besides GetOrSetFunc.
The text was updated successfully, but these errors were encountered: