]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix load_pgs collection handling
authorSage Weil <sage@inktank.com>
Sat, 9 Feb 2013 08:05:33 +0000 (00:05 -0800)
committerSage Weil <sage@inktank.com>
Sat, 9 Feb 2013 17:40:58 +0000 (09:40 -0800)
commitb19b6dced85617d594c15631571202aab2f94ae8
treeeab71b18c51facf868366010920a9c06efb61da0
parent1f80a0b576c0af1931f743ad988b6293cbf2d6d9
osd: fix load_pgs collection handling

On a _TEMP pg, is_pg() would succeed, which meant we weren't actually
hitting the cleanup checks.  Instead, restructure this loop as positive
checks and handle each type of collection we understand.

This fixes _TEMP cleanup.

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