mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
crush: fix get_full_location_ordered
This should return -ENOENT when an id is not present. Broken by
746069ee62
.
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
23f715ba82
commit
d4f07cd90b
@ -323,6 +323,8 @@ map<string, string> CrushWrapper::get_full_location(int id)
|
||||
|
||||
int CrushWrapper::get_full_location_ordered(int id, vector<pair<string, string> >& path)
|
||||
{
|
||||
if (!item_exists(id))
|
||||
return -ENOENT;
|
||||
int cur = id;
|
||||
int ret;
|
||||
while (true) {
|
||||
|
Loading…
Reference in New Issue
Block a user