-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Race condition when running the redis example #364
Comments
Issue is here: Line 290 in 65c7853
|
Thanks @donstephan for reporting this! The issue is *system.Info was passed into hooks, and in the Redis hook, it directly dereferenced the live info: server/hooks/storage/redis/redis.go Line 364 in 65c7853
I have provided a fix in PR #365, please verify. |
Looks great. Tested the PR with the redis example and no more race. Thank you much! |
@donstephan , this is incorporated into v2.4.6. |
When running the redis example with the golang -race flag it outputs a data race when it initially starts up. I haven't observed this happening in a live environment but noticed it when I was doing some other debugging.
Clone the repo, start a redis server on
localhost:6379
and run:I will provide a fix when I get the time to do so.
The text was updated successfully, but these errors were encountered: