-
Notifications
You must be signed in to change notification settings - Fork 53
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
output: make plugin context operations safe for concurrent use #46
Conversation
Signed-off-by: Zero King <[email protected]>
How about using a plane map + RWMutex ?
|
Only FLBPluginInit has access to the plugin struct, and every call assigns a new key. |
In fact, every time FLBPluginSetContext is called a new key is used, so this is exactly use case (1), a cache that only grows. |
OK. |
@edsiper Could you review this? |
@nokute78 Can you merge this pull request? |
@nokute78 pls check for permissions now... |
Oh I can find "Merge pull request" button now. |
See #45.