mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-28 19:24:58 +08:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user