]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: populate the trim_thru epoch using MOSDMap.oldest_map 8017/head
authorKefu Chai <kchai@redhat.com>
Wed, 16 Mar 2016 13:15:35 +0000 (21:15 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 16 Mar 2016 17:02:11 +0000 (01:02 +0800)
commit9789c29fe0f82b236703f7ae4d356251fde3a46f
treeae2e6163ad8b1b78c910cc57092f74b2208a4723
parent188644cb753fe304d941051b75b9eac49ede1086
osd: populate the trim_thru epoch using MOSDMap.oldest_map

instead of filling MOSDMap with the local oldest_map, we share
the maximum MOSDMap.oldest_map received so far with peers. That
way one OSD's failure to trim won't prevent it from sharing with
others that they are allowed to trim.

Fixes: #13990
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h