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
StatObject validates names twice #1583
Comments
Clean up duplicate internal function. Fixes minio#1583
what is the problem if it does double validation? @bboreham - feel free to clean it up if you wish. It is simply duplicated due to layers of re-use and historical. |
Problems include run-time cost and unnecessary code for the reader to understand. |
runtime cost? can you show me? |
Clean up duplicate internal functions. fixes #1583
I don't know why you're being so aggressive here. Lines 350 to 355 in daea25a
|
Not mean to be aggressive, our wish is to get more information into this issue. Since you said runtime cost - can you share how you measured it? we would like to avoid costs that are greater than the HTTP costs so it is important that we get enough information. However, the de-duplication of the code is fixed in the master branch. |
Either
statObject
should not be doing the validation, orStatObject
is redundant, because the first 7 lines of each function are identical.minio-go/api-stat.go
Lines 60 to 80 in daea25a
The text was updated successfully, but these errors were encountered: