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
confused method name [to_little_endian] #36
Comments
你确定写错了?还是函数名没起好? 这个 driver 是可以工作的呀, 如果这个反了, 就不能正常工作了. |
mongo 协议规定是用 little endian 的 |
我并没有用这个driver,只是浏览代码. |
看了MongoDB Wire Protocol,确实只是函数名没起好. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lua-mongo.c 里的to_little_endian方法写错了.
return u.b[0] | u.b[1] << 8 | u.b[2] << 16 | u.b[3] << 24;
==>
return u.b[3] | u.b[2] << 8 | u.b[1] << 16 | u.b[0] << 24;
The text was updated successfully, but these errors were encountered: