mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-08 07:17:48 +02:00
Refactors PR #8909 to: - Extract a checkContextCancelled() helper to eliminate repeated 3-line pattern - Guard 10 write/mutate methods against already-cancelled contexts - Intentionally leave RollbackTransaction unguarded since it is a cleanup operation that must succeed even after cancellation - Add deadline-exceeded test coverage alongside cancellation tests - Simplify tests from ~230 lines to ~130 lines with clearer structure