mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 22:20:37 +00:00
doc: comment changes
Co-authored-by: Christian Schwarz <christian@neon.tech>
This commit is contained in:
committed by
Joonas Koivunen
parent
0a5043fae5
commit
244185e6e6
@@ -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();
|
||||
|
||||
@@ -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<()>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user