Files
seaweedfs/weed
Chris Lu 0f5c6a8ae0 fix S3 conditional header TOCTOU race during concurrent writes (#8800)
The early check in checkConditionalHeaders ran before data upload,
allowing concurrent requests to all pass before any write completed.

Use the existing distributed lock manager to atomically re-check
conditional headers and create the filer entry. The lock is acquired
after data upload (so it's held only for fast metadata operations)
and covers all conditional headers: If-Match, If-None-Match,
If-Modified-Since, and If-Unmodified-Since.

Requests without conditional headers have zero overhead (no lock).
2026-03-27 12:42:57 -07:00
..
2026-03-26 23:11:10 -07:00
2026-02-20 18:42:00 -08:00
2026-03-27 01:29:05 -07:00
2024-02-14 08:26:38 -08:00