Project

General

Profile

Cleanup #12684

Remove no use code in pipe.cc.

Added by ceph zte almost 2 years ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/13/2015
Due date:
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Release:
Needs Doc:
No

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);
}

History

#1 Updated by Sage Weil almost 2 years ago

  • Tracker changed from Bug to Cleanup

#3 Updated by Nathan Cutler 6 months ago

  • Status changed from New to Need Review

#4 Updated by Greg Farnum 6 months ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF