Project

General

Profile

Bug #14194

os: wrong return code of _do_copy_range

Added by xie xingguo about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
12/29/2015
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Check int FileStore::_do_copy_range

if (pipe(pipefd) < 0)
      {
r = errno;
derr << " pipe " << " got " << cpp_strerror(r) << dendl;
return r;
}

Caller is unable to process a positive error code.

Associated revisions

Revision 485e5865 (diff)
Added by xie xingguo about 3 years ago

os: fix return code of _do_copy_range

Shall return a negative return code instead, otherwise caller will unable to handle it.

Fixes: #14194
Signed-off-by: xie xingguo <>

Also available in: Atom PDF