]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd/pg: Let PGListener use start_peering_event_operation
authorMatan Breizman <mbreizma@redhat.com>
Thu, 24 Apr 2025 07:57:00 +0000 (07:57 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 6 May 2025 07:49:14 +0000 (10:49 +0300)
commit6f8c34087534ca3a544824b3b6f82afe70e1491d
treeaffcc0a6fd3053b5a45c7777a8f98429aed83688
parent31bfc7aa34a4c53bfab2b4b723d000eef8ca8633
crimson/osd/pg: Let PGListener use start_peering_event_operation

PG::start_peering_event_operation is a template function while
PGRecovery::pg is of PGRecoveryListener* type. We can't expose a template
function through the PGRecoveryListener interface since it must be
also virtual.
Instead, introduce start_peering_event_operation_listener which will act
as a wrapper to PG::start_peering_event_operation for PGRecovery to use
freely.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit c94e604bbb6550109ad5945ab86f82d6d5aeb1a1)
src/crimson/osd/pg_recovery.cc
src/crimson/osd/pg_recovery.h
src/crimson/osd/pg_recovery_listener.h