]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSD: only trim up to the oldest map still in use by a pg
authorSamuel Just <sam.just@inktank.com>
Fri, 11 Jan 2013 19:02:15 +0000 (11:02 -0800)
committerSamuel Just <sam.just@inktank.com>
Fri, 11 Jan 2013 20:17:10 +0000 (12:17 -0800)
commit66eb93b83648b4561b77ee6aab5b484e6dba4771
tree135b83126c58bd22b0b7aa71e2864a742aaba426
parent8cf79f252a1bcea5713065390180a36f31d66dfd
OSD: only trim up to the oldest map still in use by a pg

map_cache.cached_lb() provides us with a lower bound across
all pgs for in-use osdmaps.  We cannot trim past this since
those maps are still in use.

backport: bobtail
Fixes: #3770
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/common/shared_cache.hpp
src/osd/OSD.cc