-
Notifications
You must be signed in to change notification settings - Fork 68
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
add crc checking feature to upload object #31
Conversation
mars-coder
commented
Oct 12, 2016
- 在上传文件的操作中(put_object, append_object, upload_part)追加crc校验处理
- 由于第三方库性能问题,所以直接采用c扩展库的方式来实现crc计算(ext/crcx)
- crc校验根据配置项crc_enable来控制开启
- 由于crc校验涉及stream部分处理,上层使用的地方比较多,所以功能测试中分别针对crc enable和crc disable执行了两次
- 在Gemfile中限定了第三方库term-ansicolor的版本小于1.4.0,现在默认安装会更新到这个版本,而这个版本要求ruby >= 2.0,和ruby 1.9不兼容
1 similar comment
024706c
to
75720cc
Compare
2 similar comments
@@ -3,3 +3,6 @@ source 'https://rubygems.org' | |||
gemspec | |||
|
|||
gem 'coveralls', require: false | |||
|
|||
# term-ansicolor 1.4.0 requires ruby version >= 2.0, which is incompatible with 1.9.x | |||
gem 'term-ansicolor', '< 1.4.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们为什么需要这个依赖?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们会间接依赖到term-ansicolor,间接依赖中是使用最新版本,目前term-ansicolor新的1.4.0版本没法兼容ruby 1.9,就会导致我们的sdk没法支持ruby 1.9了,所以暂时加了一个版本限定。
@@ -86,4 +104,4 @@ def to_bool | |||
return true if self =~ /^true$/i | |||
false | |||
end | |||
end | |||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这种能在行尾增加一个换行吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没太注意,可能是编辑器自动保存添加的
sr << content | ||
end | ||
|
||
r = s.read(content.size + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里这个+1是什么意思?
|
75720cc
to
b79543d
Compare
2 similar comments
Change-Id: Ibeb03573c76f42ea434f6c51c5f95befc0a5df71
b79543d
to
62d6fba
Compare
3 similar comments
Change-Id: I8c95b05ff450711552507375199fb6c8294d73e3