-
Notifications
You must be signed in to change notification settings - Fork 13
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
Longer fid #22
Longer fid #22
Conversation
Note that I do not use unsigned long since ps. the issue break my production site about twelve hours :( |
Of cause it pass unit test and integration test. |
@massdosage @jyukutyo could you review and merge this if think the code is ok? Thanks |
Sorry for late. I reviewed code and it is OK! |
Sorry for the long delay, I've been really busy and then away on holiday but I'm back now. This PR looks fine but makes me wonder why we modelled it as a number in the first place, possibly this was based on the previous Java client. What is the type of fid in the underlying MogileFS database? (I don't have it all setup on the machine I'm currently on) |
It is |
Hmm, a MySQL INT should map just fine to a Java int type (see http://dev.mysql.com/doc/refman/5.7/en/integer-types.html) unless there is some way you can say it's unsigned in which case it would need to be a long. I assume you've actually run into this issue in production so it can happen? |
@massdosage oh sorry for the wrong info, It is actually |
OK, a long makes sense then. I'll merge. |
No description provided.