]> 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>
Thu, 26 Jul 2012 23:35:10 +0000 (16:35 -0700)
commit9db78090451e609e3520ac3e57a5f53da03f9ee2
tree43bcec82da7ef2336d30b35892d3c34b47ec753d
parentc963a21a8620779d97d6cbb51572551bdbb50d0b
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