From 26c39d7b4c4b4c9d397703de94520b4816d78292 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Wed, 16 Aug 2023 14:56:37 +0300 Subject: [PATCH] timeline: pub(crate) compaction --- pageserver/src/tenant/timeline.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pageserver/src/tenant/timeline.rs b/pageserver/src/tenant/timeline.rs index 8cd9bb9a27..98a75cb863 100644 --- a/pageserver/src/tenant/timeline.rs +++ b/pageserver/src/tenant/timeline.rs @@ -622,7 +622,7 @@ impl Timeline { } /// Outermost timeline compaction operation; downloads needed layers. - pub async fn compact( + pub(crate) async fn compact( self: &Arc, cancel: &CancellationToken, ctx: &RequestContext, @@ -2807,7 +2807,7 @@ struct CompactLevel0Phase1Result { /// Top-level failure to compact. #[derive(Debug, thiserror::Error)] -enum CompactionError { +pub(crate) enum CompactionError { #[error("The timeline or pageserver is shutting down")] ShuttingDown, /// Compaction cannot be done right now; page reconstruction and so on.