Skip to content

B xzk remove chunked#112

Merged
longbai merged 3 commits intoqiniu:developfrom
xuzhaokui:b_xzk_remove_chunked
Jun 23, 2014
Merged

B xzk remove chunked#112
longbai merged 3 commits intoqiniu:developfrom
xuzhaokui:b_xzk_remove_chunked

Conversation

@xuzhaokui
Copy link
Contributor

去除了 chunked 上传。

issue: http://pm.qbox.me/redmine/issues/9359

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add Buffer check
func (*Buffer.Reader) Len

func (b *Buffer) Len() int
Len returns the number of bytes of the unread portion of the buffer; b.Len() == len(b.Bytes()).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得几个小分支没必要了,把文件的 Reader 搞定就可以解决主要矛盾了。

其实我们这么改的用途并不是想让客户继续用这个API,而且在 push 用户改的时候,会明确告诉它如果继续用这个 API 会造成本地的磁盘 IO。

另外,其实真正使用内存数据而非文件内容来上传的,应该是非常少的。

@longbai
Copy link
Contributor

longbai commented Jun 23, 2014

LGTM

longbai added a commit that referenced this pull request Jun 23, 2014
@longbai longbai merged commit 511fa3c into qiniu:develop Jun 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该判extra.CheckCrc == 1 下面的 extra.CheckCrc = 2也不必要。

@longbai longbai mentioned this pull request Jun 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants