From d5ac61d566f641053fe3dbd8f30f65941a084018 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Mon, 28 Aug 2023 14:41:43 +0300 Subject: [PATCH] doc: add cancellation safe comment --- pageserver/src/tenant/storage_layer/layer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pageserver/src/tenant/storage_layer/layer.rs b/pageserver/src/tenant/storage_layer/layer.rs index c36aa197bc..7895014ebc 100644 --- a/pageserver/src/tenant/storage_layer/layer.rs +++ b/pageserver/src/tenant/storage_layer/layer.rs @@ -165,6 +165,8 @@ impl Layer { /// /// If for a bad luck or blocking of the executor, we miss the actual eviction and the layer is /// re-downloaded, [`EvictionError::Downloaded`] is returned. + /// + /// Cancellation safe. pub(crate) async fn evict_and_wait( &self, rtc: &RemoteTimelineClient,