From d519c5f8e54226ad6e2c00482188b1e17a8cb73c Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Mon, 6 Jul 2026 19:19:25 +0300 Subject: [PATCH] osd/scrub: fix pg_scrubber.h diagram The diagram depicts the relationships between the main Scrubber components and interfaces. The previous version of the diagram was outdated, and it is now fixed to match the code. Signed-off-by: Ronen Friedman --- src/osd/scrubber/pg_scrubber.h | 103 ++++++++++++++++++--------------- 1 file changed, 55 insertions(+), 48 deletions(-) diff --git a/src/osd/scrubber/pg_scrubber.h b/src/osd/scrubber/pg_scrubber.h index 9ee7d69e4c71..ba6decfcbb86 100644 --- a/src/osd/scrubber/pg_scrubber.h +++ b/src/osd/scrubber/pg_scrubber.h @@ -8,57 +8,64 @@ Main Scrubber interfaces: -┌──────────────────────────────────────────────┬────┐ -│ │ │ -│ │ │ -│ PG │ │ -│ │ │ -│ │ │ -├──────────────────────────────────────────────┘ │ -│ │ -│ PrimaryLogPG │ -└────────────────────────────────┬──────────────────┘ - │ - │ - │ owns & uses - │ - │ - │ -┌────────────────────────────────▼──────────────────┐ -│ <> │ -└───────────────────────────▲───────────────────────┘ - │ - │ - │implements - │ - │ - │ -┌───────────────────────────┴───────────────┬───────┐ -│ │ │ -│ PgScrubber │ │ -│ │ │ -│ │ ├───────┐ -├───────────────────────────────────────────┘ │ │ -│ │ │ -│ PrimaryLogScrub │ │ -└─────┬───────────────────┬─────────────────────────┘ │ - │ │ implements - │ owns & uses │ │ - │ │ ┌─────────────────────────▼──────┐ - │ │ │ <> │ - │ │ └─────────▲──────────────────────┘ - │ │ │ - │ │ │ - │ ▼ │ - │ ┌────────────────────────────────┴───────┐ - │ │ │ - │ │ ScrubMachine │ - │ │ │ - │ └────────────────────────────────────────┘ +┌──────────────────────────────────────────────────┬────┐ +│ │ │ +│ PG │ │ +│ (implements <>) │ │ +│ │ │ +├──────────────────────────────────────────────────┘ │ +│ │ +│ PrimaryLogPG │ +└──────────────────────────┬────────────────────────────┘ + │ + │ owns & uses + │ +┌──────────────────────────▼────────────────────────────┐ +│ <> │ +└──────────────────────────▲────────────────────────────┘ + │ + │ implements + │ +┌──────────────────────────┴──────────────┬──────┐ ┌──────────────────────────────────┐ +│ │ │ │ │ +│ PgScrubber │ ├───────►│ <> │ +│ │ │ │ │ +│ │ │ └──────────────────────────────▲───┘ +│ │ │implements │ +│ │ │ ┌──────────────────────────┐ │ +│ │ ├───────►│ <> │ │ +│ │ │ │ │ │ +├─────────────────────────────────────────┘ │ └─────────────────▲────────┘ │ +│ │ │ │ +│ PrimaryLogScrub │ uses │ uses │ +│ │ │ │ +└─────┬──────────────────┬──────────────┬────────┘ │ │ + │ │ │ │ │ + │ owns & uses │ owns & uses │ owns & uses │ │ + │ │ │ │ │ + │ │ ┌─────▼──────────────────────────┐ │ │ + │ │ │ ├────────┘ │ + │ │ │ ScrubBackend │ │ + │ │ │ (also uses │ │ + │ │ │ <>) │ │ + │ │ │ │ │ + │ │ └────────────────────────────────┘ │ + │ │ │ + │ ┌─────────────▼─────────────────────────────┐ │ + │ │ <> │ │ + │ └────────────────────▲──────────────────────┘ │ + │ │ │ + │ │ implements │ + │ │ │ + │ ┌────────────────────┴──────────────────────┐ │ + │ │ ├─────────────────────────────────┘ + │ │ ScrubMachine │ + │ │ │ + │ └───────────────────────────────────────────┘ │ ┌───▼─────────────────────────────────┐ │ │ - │ ScrubStore │ + │ Scrub::Store │ │ │ └─────────────────────────────────────┘ -- 2.47.3