Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osd: OSDMap: build reverse name->pool map upon decoding #1095

Merged
1 commit merged into from Jan 16, 2014
Merged

Conversation

jecluis
Copy link
Member

@jecluis jecluis commented Jan 16, 2014

Commit 3d7c69f introduced a new OSDMap encoding/decoding scheme.
However, while the classic decoding function still kept building the
reverse name->pool map, the new decoding function did not, causing the
monitor to be unable to map pool names to pool ids.

This patch fixes this, by factoring out the loop responsible for
populating the 'name_pool' map, as well as calling 'calc_num_osds()', to
OSDMap::post_decode() and having this function called from both the
classic and the new decode functions.

Fixes: 7166

Signed-off-by: Joao Eduardo Luis jecluis@gmail.com

Commit 3d7c69f introduced a new OSDMap encoding/decoding scheme.
However, while the classic decoding function still kept building the
reverse name->pool map, the new decoding function did not, causing the
monitor to be unable to map pool names to pool ids.

This patch fixes this, by factoring out the loop responsible for
populating the 'name_pool' map, as well as calling 'calc_num_osds()', to
OSDMap::post_decode() and having this function called from both the
classic and the new decode functions.

Fixes: 7166

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
@ghost
Copy link

ghost commented Jan 16, 2014

http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-tarball-precise-amd64-basic/log.cgi?log=1aa2601818cef481ed68c350f98c7e1fca911b97 passes : it previously failed because of the error. I also find that local compilation + make check works. The other two gitbuilder URLs fail for reasons unrelated to the fix or the original error ( timeout is too short and machines are too slow ).

ghost pushed a commit that referenced this pull request Jan 16, 2014
osd: OSDMap: build reverse name->pool map upon decoding

Reviewed-by: Loic Dachary <loic@dachary.org>
@ghost ghost merged commit d27731f into master Jan 16, 2014
@jecluis jecluis deleted the wip-7166 branch January 16, 2014 13:54
liewegas pushed a commit to liewegas/ceph that referenced this pull request Nov 18, 2016
packages.yaml: reflect python-ceph package split
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant