]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fixing sharing of past_intervals on backfill restart
authorSage Weil <sage@inktank.com>
Thu, 26 Jul 2012 23:35:00 +0000 (16:35 -0700)
committerSage Weil <sage@inktank.com>
Fri, 27 Jul 2012 04:55:03 +0000 (21:55 -0700)
commit9553c6edfbad4f5b64e1cc6ad8b3394a0b100e98
treee74c011fb04bac1d17f52a3a853850eb9460afdd
parent29aa1cf440a9a26462cd59040bf60f23ad069b33
osd: fixing sharing of past_intervals on backfill restart

We need to share past_intervals whenever we instantiate the PG on a peer.
In the PG activation case, this is based on whether our peer_info[] value
for that peer is dne().  However, the backfill code was updating the
peer info (history) in the block preceeding the dne() check, which meant
we never shared past_intervals in this case and the peer would have to
chew through a potentially large number of maps if the PG has not been
clean recently.

Fix by checking dne() prior to the backfill block.  We still need to fill
in the message later because it isn't yet instantiated.

Fixes: #2849
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
src/osd/PG.cc