Skip to content
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

msg/async: _try_send trim already sent for outcoming_bl more efficient #7970

Merged
merged 1 commit into from Mar 18, 2016

Conversation

Yan-waller
Copy link
Contributor

Signed-off-by: Yan Jun yan.jun8@zte.com.cn

if (sent_bytes < outcoming_bl.length()) {
bufferlist bl;
outcoming_bl.splice(sent_bytes, outcoming_bl.length()-sent_bytes, &bl);
bl.swap(outcoming_bl);
Copy link
Member

Choose a reason for hiding this comment

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

we only need to splice to a nullptr when sent_bytes < outcoming_bl.length()

@Yan-waller
Copy link
Contributor Author

@yuyuyu101 Done.

@xiexingguo
Copy link
Member

@Yan-waller Need rebase

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
@liewegas liewegas added this to the jewel milestone Mar 15, 2016
@liewegas liewegas changed the title msg: async: _try_send trim already sent for outcoming_bl more efficient msg/async: _try_send trim already sent for outcoming_bl more efficient Mar 18, 2016
liewegas added a commit that referenced this pull request Mar 18, 2016
msg/async: _try_send trim already sent for outcoming_bl more efficient

Reviewed-by: Haomai Wang <haomai@xsky.com>
@liewegas liewegas merged commit be94eca into ceph:master Mar 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants