Skip to content

Commit

Permalink
Crush when get immediate parent quickly reply.
Browse files Browse the repository at this point in the history
Fixes: #14334
Signed-off-by: songbaisen song.baisen@zte.com.cn
  • Loading branch information
songbaisen committed Jan 11, 2016
1 parent 8676120 commit 5f64ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crush/CrushWrapper.cc
Expand Up @@ -893,7 +893,8 @@ pair<string,string> CrushWrapper::get_immediate_parent(int id, int *_ret)
string parent_id = name_map[b->id];
string parent_bucket_type = type_map[b->type];
loc = make_pair(parent_bucket_type, parent_id);
ret = 0;
*_ret = 0;
return loc;
}
}

Expand Down

0 comments on commit 5f64ad0

Please sign in to comment.