]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PeeringState: renew before activate messages; send after activated
authorSage Weil <sage@redhat.com>
Tue, 6 Aug 2019 03:05:38 +0000 (22:05 -0500)
committerSage Weil <sage@redhat.com>
Sat, 28 Sep 2019 16:51:18 +0000 (11:51 -0500)
commitc8383b7c9fe7cc2602189a38c5ff461e38d826e7
treeee5a08652d8f58085e94387438fb231029d8f27f
parente2d95c4ece9e3617e5610dee4a95ea9437fa6110
osd/PeeringState: renew before activate messages; send after activated

We want to renew before we prepeare or send activate messages so that we
have the opportunity to include leases in them (coming soon!).

And we do not want to send explicit lease messages until we know that the
peers have activate.  In particular, we want to avoid queueing a notify
(via pending_activators) and then sending a lease that will arrive before
it.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PeeringState.cc