]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PeeringState: give PeeringCtxWrapper a BufferedRecoveryMessages ref
authorSage Weil <sage@redhat.com>
Thu, 22 Aug 2019 15:13:17 +0000 (10:13 -0500)
committerSage Weil <sage@redhat.com>
Mon, 9 Sep 2019 16:22:11 +0000 (11:22 -0500)
commit61bf8f409a79f10fe0526e554fc7a4cd4d4b7cdc
treefe6eaa427edddeb92589e81e74e37e1d67a505ed
parent49a0573aa80bc679c8fed79e4070dad7f105dfc6
osd/PeeringState: give PeeringCtxWrapper a BufferedRecoveryMessages ref

The ref can be either a raw BufferedRecoveryMessages (buffering) or
a PeeringCtx (child class, no buffering).  This avoids the need for a
member ref, and also means that we can (later) make methods take the
BufferedRecoveryMessages ref as a general interface to consume for both
buffered and non-buffered work that is outside of PeeringState.

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