Project

General

Profile

Actions

Bug #48866

closed

The interface code about group list is redundant

Added by David Lee over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

At librbd::api::group::list,the code is redundant,like:
if (r == -ENOENT) {
return 0; // Ignore missing rbd group directory. It means we don't have any groups yet.
}
if (r < 0) {
if (r != -ENOENT) {
lderr(cct) << "error listing group in directory: "
<< cpp_strerror(r) << dendl;
} else {
r = 0;
}
return r;
}
I think the first if judgment can be removed.

Actions #1

Updated by Jason Dillaman over 3 years ago

  • Status changed from New to Resolved
Actions #2

Updated by Jason Dillaman over 3 years ago

  • Pull request ID set to 38898
Actions

Also available in: Atom PDF