doc: comment changes

Co-authored-by: Christian Schwarz <christian@neon.tech>
This commit is contained in:
Joonas Koivunen
2023-03-28 10:31:54 +03:00
committed by Joonas Koivunen
parent 0a5043fae5
commit 244185e6e6
2 changed files with 3 additions and 2 deletions

View File

@@ -322,7 +322,8 @@ fn start_pageserver(
// Scan the local 'tenants/' directory and start loading the tenants
BACKGROUND_RUNTIME.block_on(mgr::init_tenant_mgr(conf, remote_storage.clone()))?;
// shared state between the background task and the http endpoint; note that the http endpoint
// shared state between the disk-usage backed eviction background task and the http endpoint
// that allows triggering disk-usage based eviction manually. note that the http endpoint
// is still accessible even if background task is not configured as long as remote storage has
// been configured.
let disk_usage_eviction_state: Arc<DiskUsageEvictionState> = Arc::default();

View File

@@ -72,7 +72,7 @@ pub struct DiskUsageEvictionTaskConfig {
#[derive(Default)]
pub struct DiskUsageEvictionState {
/// Exclude http requests and background task from running at the same time.
/// Prevent mgmt API requests and the background loop from running eviction at the same time.
mutex: tokio::sync::Mutex<()>,
}