Files
rustfs/crates
houseme 55e3a1f7e0 fix(audit): prevent state transition when no targets exist (#854)
Avoid setting AuditSystemState::Starting when target list is empty.
Now checks target availability before state transition, keeping the
system in Stopped state if no enabled targets are found.

- Check targets.is_empty() before setting Starting state
- Return early with Ok(()) when no targets exist
- Maintain consistent state machine behavior
- Prevent transient "Starting" state with no actual targets

Resolves issue where audit system would incorrectly enter Starting
state even when configuration contained no enabled targets.
2025-11-14 20:23:21 +08:00
..
2025-08-08 10:23:22 +08:00
2025-11-03 17:39:51 +08:00
2025-09-27 17:57:56 -07:00
2025-09-09 18:39:51 +08:00
2025-10-27 20:23:50 +08:00