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/simple/Pipe:the returned value for do_recv unequal to zero #10272
Conversation
Is do_recv() not returning 0 really part of the defined interface, or just a current implementation? I guess we can merge this on the first but the <= doesn't cost any more than < and changing it reduces resiliency to future changes... |
7d4f624
to
96da884
Compare
jenkins test this please (jenkins stuck) |
96da884
to
2b22f04
Compare
@dachary done |
@yonghengdexin735 you need to update the commit message, it won't work if you update the github web interface message |
the returned value for do_recv unequal to zero: ssize_t Pipe::do_recv(char *buf, size_t len, int flags) { again: ssize_t got = ::recv( sd, buf, len, flags ); if (got < 0) { if (errno == EINTR) { goto again; } ldout(msgr->cct, 10) << **func** << " socket " << sd << " returned " << got << " " << cpp_strerror(errno) << dendl; return -1; } if (got == 0) { return -1; } return got; } so here '=' can be removed Signed-off-by: zhang.zezhu <zhang.zezhu@zte.com.cn>
2b22f04
to
dd7a58b
Compare
@dachary Thank you for review.Done it. |
jenkins test this please (cephtool-test-mds.sh http://tracker.ceph.com/issues/18016) |
i think it's more consistent with the other caller site of |
the returned value for do_recv unequal to zero:
so here '=' can be removed
Signed-off-by: zhang.zezhu zhang.zezhu@zte.com.cn