Project

General

Profile

Actions

Cleanup #12684

closed

Remove no use code in pipe.cc.

Added by ceph zte over 8 years ago. Updated over 7 years ago.

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&lt;msg-&gt;msg_iovlen; i++)
l += msg->msg_iov[i].iov_len;
assert(l == len);
}
Actions #1

Updated by Sage Weil over 8 years ago

  • Tracker changed from Bug to Cleanup
Actions #3

Updated by Nathan Cutler over 7 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Greg Farnum over 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF