]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: do not use incomplete peer for best info/log
authorSage Weil <sage.weil@dreamhost.com>
Sun, 1 Jan 2012 04:44:05 +0000 (20:44 -0800)
committerSage Weil <sage@newdream.net>
Wed, 4 Jan 2012 21:59:26 +0000 (13:59 -0800)
commit4bcdb37cf3d187a8c96d8cf43dbae521b5a48cba
treed2a469d751a96d6bd28ec57e7276f69788faba2e
parentf8929bad58968af04ebf7ce54dd716cc1e98195f
osd: do not use incomplete peer for best info/log

For one, their stats are incomplete; if we use them we'll screw up everyone
else.  For another, it doesn't do us any good if they are a bit ahead of
the peers: we/they may not even have the objects their newer log says were
updated.  The only real use is if their log extends farther back in time,
but that is a problem in general that we'll eventually solve in other ways.

On the other hand, having the pg_stats sum only through last_backfill may
not have been the best choice; we could avoid that part of things by adding
a objects_backfilled field.  But this is probably a good idea anyway.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/PG.cc