]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: maintain up_epoch AND boot_epoch; revise OSDSuperblock accordingly
authorSage Weil <sage@newdream.net>
Fri, 8 May 2009 21:04:03 +0000 (14:04 -0700)
committerSage Weil <sage@newdream.net>
Fri, 8 May 2009 21:04:03 +0000 (14:04 -0700)
commit026166ff53a64cf2feb0d0ab35bbc82374bb7803
tree6b045ba3af2c4d38be51a0584aeb76eea79ac5df
parent18851ce0f5364dd5ab5e1ef062dfcd907b190b2a
osd: maintain up_epoch AND boot_epoch; revise OSDSuperblock accordingly

In order to make the superblock clean interval meaningful after we
are marked down and then up again (over the life of a single
cosd process insance), we track both boot_epoch and up_epoch,
and keep [boot_epoch,clean_thru] in the superblock.

This avoids seeing crashed pgs when and osd is wrongly marked down
and the osd marks itself up again.
src/osd/OSD.cc
src/osd/OSD.h
src/osd/osd_types.h