-
Notifications
You must be signed in to change notification settings - Fork 1k
Misusing of defer #728
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
Comments
The reason is
Do you meet some problem with this feature? |
@lance6716 I mean setting |
Oh thanks for pointing it out. Can you open a PR to fix it? I'll check it carefully when review your PR. |
I read the go-mysql/utils/bytes_buffer_pool.go Lines 26 to 29 in 1c55c36
so |
@shizhx thank you for pointing this out and opening a PR! May I point out to you that this project is mainly, if not completely, run by volunteers, as do many open source projects. If you want something done, you should really adjust your tone of voice. Calling an honest mistake by a previous contributor "stupid" is certainly not constructive. |
@skoef I am very sorry, I will pay attention in the future. |
@skoef But this project is the most important library about MySQL replication, yet the unit tests are too few, some commits change same line repeatly to fix some 'stupid' issue. So I expect:
|
@shizhx thank you for understanding! I agree that more unit testing is better and I encourage you to contribute as you seem to be engaged in the project! |
go-mysql/packet/conn.go
Lines 90 to 112 in 1c55c36
defer utils.BytesBufferPut(buf)
anddefer
capturebuf
early, so modifybuf
afterdefer
not working.The text was updated successfully, but these errors were encountered: