Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

inspect-mysql#40

Open
BrianIp wants to merge 48 commits intosquare:masterfrom
BrianIp:master
Open

inspect-mysql#40
BrianIp wants to merge 48 commits intosquare:masterfrom
BrianIp:master

Conversation

@BrianIp
Copy link
Contributor

@BrianIp BrianIp commented Jun 4, 2014

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global

@xaviershay
Copy link
Collaborator

This is great! My biggest concern is that it's non-obvious how to make changes to this code, since there are no tests and no guidance in README. Can you add some documentation for how you develop and test this code (if only manually?)

For example, say I wanted to change or fix a bug in the stacked queries check. How would you do that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the lock needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maps aren't thread safe. There's a potential race condition where two different threads might try to create new entries and initialize metrics for the same entry in a map.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants