diff options
author | Matan Breizman <mbreizma@redhat.com> | 2024-04-15 14:51:09 +0200 |
---|---|---|
committer | Matan Breizman <mbreizma@redhat.com> | 2024-11-05 10:47:22 +0100 |
commit | 7a2db2f46e28c7e0593239957450f5d667c962c7 (patch) | |
tree | e3fc452ba0c3aa0439c0145a645bd651abf9b388 /src/crimson/osd/backfill_facades.h | |
parent | Merge pull request #60100 from piyushagarwal1411/fix-68316-main (diff) | |
download | ceph-7a2db2f46e28c7e0593239957450f5d667c962c7.tar.xz ceph-7a2db2f46e28c7e0593239957450f5d667c962c7.zip |
crimson/osd/pg: introduce projected_log
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
Diffstat (limited to 'src/crimson/osd/backfill_facades.h')
-rw-r--r-- | src/crimson/osd/backfill_facades.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crimson/osd/backfill_facades.h b/src/crimson/osd/backfill_facades.h index 522a93a1ddc..64544d4c870 100644 --- a/src/crimson/osd/backfill_facades.h +++ b/src/crimson/osd/backfill_facades.h @@ -36,6 +36,10 @@ struct PeeringFacade final : BackfillState::PeeringFacade { return peering_state.get_info().log_tail; } + const PGLog& get_pg_log() const override { + return peering_state.get_pg_log(); + } + void scan_log_after(eversion_t v, scan_log_func_t f) const override { peering_state.get_pg_log().get_log().scan_log_after(v, std::move(f)); } @@ -73,6 +77,10 @@ struct PGFacade final : BackfillState::PGFacade { return pg.projected_last_update; } + const PGLog::IndexedLog& get_projected_log() const override { + return pg.projected_log; + } + PGFacade(PG& pg) : pg(pg) {} }; |