]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix load_pgs handling of pg dirs without a head
authorSage Weil <sage@inktank.com>
Sat, 9 Feb 2013 08:04:29 +0000 (00:04 -0800)
committerSage Weil <sage@inktank.com>
Sat, 9 Feb 2013 17:40:54 +0000 (09:40 -0800)
commit1f80a0b576c0af1931f743ad988b6293cbf2d6d9
tree962ccea2b34356468d20d14ce88d1e49d276fd7a
parent073f58ede2e473af91f76d01679631c169274af7
osd: fix load_pgs handling of pg dirs without a head

If there is a pgid that passes coll_t::is_pg() but there is no head, we
will populate the pgs map but then fail later when we try to do
read_state.  This is a side-effect of 55f8579.

Take explicit note of _head collections we see, and then warn when we
find stray snap collections.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc