From c7f201e6cb9ba107d281816ccda875f3b5758ee1 Mon Sep 17 00:00:00 2001 From: YR Chen Date: Wed, 26 Aug 2026 12:01:56 +0800 Subject: [PATCH] docs(ecstore): correct get_lock_acquire_timeout doc comment (#6622) The doc comment named RUSTFS_LOCK_ACQUIRE_TIMEOUT with a 30-second default, but the function reads RUSTFS_OBJECT_LOCK_ACQUIRE_TIMEOUT with a 5-second default. RUSTFS_LOCK_ACQUIRE_TIMEOUT is a real, separate knob read by the lock and scanner crates, so tuning the documented name silently has no effect on this path. Co-authored-by: Claude Fable 5 --- crates/ecstore/src/set_disk/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ecstore/src/set_disk/mod.rs b/crates/ecstore/src/set_disk/mod.rs index 1308e4ae3..e504fb2c4 100644 --- a/crates/ecstore/src/set_disk/mod.rs +++ b/crates/ecstore/src/set_disk/mod.rs @@ -1559,8 +1559,8 @@ impl SetDisks { } } -/// Get lock acquire timeout from environment variable RUSTFS_LOCK_ACQUIRE_TIMEOUT (in seconds) -/// Defaults to 30 seconds if not set or invalid +/// Get lock acquire timeout from environment variable RUSTFS_OBJECT_LOCK_ACQUIRE_TIMEOUT (in seconds) +/// Defaults to 5 seconds if not set or invalid /// Lock acquisition timeout. Cached: this is consulted on every object /// lock acquisition and `std::env::var` takes a process-global lock. In test /// builds the env var is read directly so `temp_env` overrides take effect.