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

Commits on Jan 16, 2014

  1. osd: OSDMap: build reverse name->pool map upon decoding

    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>
    jecluis committed Jan 16, 2014
    Configuration menu
    Copy the full SHA
    1aa2601 View commit details
    Browse the repository at this point in the history