]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: calculate initial PG mapping from PG's osdmap
authorSage Weil <sage@inktank.com>
Mon, 21 Jan 2013 00:11:10 +0000 (16:11 -0800)
committerSage Weil <sage@inktank.com>
Mon, 21 Jan 2013 00:11:10 +0000 (16:11 -0800)
commit17160843d0c523359d8fa934418ff2c1f7bffb25
treeb00f7cc84ca80ab5d691555136458e6c511d87be
parentaea898db2b56878b50f09dcbbf52347f4cc5c754
osd: calculate initial PG mapping from PG's osdmap

The initial values of up/acting need to be based on the PG's osdmap, not
the OSD's latest.  This can cause various confusion in
pg_interval_t::check_new_interval() when calling OSDMap methods due to the
up/acting OSDs not existing yet (for example).

Fixes: #3879
Reported-by: Jens Kristian S?gaard <jens@mermaidconsulting.dk>
Tested-by: Jens Kristian S?gaard <jens@mermaidconsulting.dk>
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc