]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PeeringState: refresh prior_readable_until_ub in pg_history_t on share
authorSage Weil <sage@redhat.com>
Fri, 19 Jul 2019 21:52:17 +0000 (16:52 -0500)
committerSage Weil <sage@redhat.com>
Thu, 26 Sep 2019 17:21:53 +0000 (12:21 -0500)
commit6945cc52fd68ebdd22f35abff81a6f91aa0922d6
tree707dc5112678285375e2d74ade7479d2b1147463
parent3bb8a7210a647ae0f074277d5c2a73f2719741e7
osd/PeeringState: refresh prior_readable_until_ub in pg_history_t on share

Before we share pg_history_t, refresh the prior_readable_until_ub to be
a simple duration from *now*, so that it is completely clock-independent.
The receiver can interpret it based on the receive time for the message,
which loses a bit of precision but is safe since this is an upper bound.

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