Actions
Cleanup #12684
closedRemove no use code in pipe.cc.
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
In pipe.cc the below function
int Pipe::do_sendmsg(struct msghdr *msg, int len, bool more)
{
while (len > 0) {
if (0) { // sanity
int l = 0;
for (unsigned i=0; i<msg->msg_iovlen; i++)
l += msg->msg_iov[i].iov_len;
assert(l == len);
}
int r = ::sendmsg(sd, msg, MSG_NOSIGNAL | (more ? MSG_MORE : 0));
if (r == 0)
The function below is no use.
if (0) { // sanity
int l = 0;
for (unsigned i=0; i<msg->msg_iovlen; i++)
l += msg->msg_iov[i].iov_len;
assert(l == len);
}
Updated by Rishabh Kumar over 7 years ago
Hi. PR submitted - https://github.com/ceph/ceph/pull/12601
Updated by Nathan Cutler over 7 years ago
- Status changed from New to Fix Under Review
Updated by Greg Farnum over 7 years ago
- Status changed from Fix Under Review to Resolved
Actions