Project

General

Profile

Bug #14872

OSD: wrong return-type of find_osd_on_ip()

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

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
02/26/2016
Due date:
% Done:

0%

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

Description

bool OSDMap::find_osd_on_ip(const entity_addr_t& ip) const {
for (int i=0; i<max_osd; i++)
if (exists(i) && (get_addr(i).is_same_host(ip) || get_cluster_addr(i).is_same_host(ip)))
return i;
return -1;
}

Shall be int instead.

Associated revisions

Revision 73784f0b (diff)
Added by xie xingguo over 3 years ago

osd: fix wrong return type of find_osd_on_ip()

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

History

#1 Updated by Sage Weil over 3 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF