mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 23:00:59 -05:00
* perf(s3): stop computing an unused SHA-256 for each stored object The S3Object constructor hashed the whole body with SHA-256. storeObjectInternal replaces that checksum before the object is published, and delete markers never return a checksum, so nothing read the value. * perf(s3): pass the composite ETag in when completing a multipart upload CompleteMultipartUpload stored the object with an MD5 of the whole body under the bucket lock, then replaced it with the composite ETag. Passing the composite ETag in skips that hash. The composite ETag is now also on the first write. WAL storage logs a record when it is put, so the version record used to keep the plain MD5, and a restart after a crash returned that MD5 for the version. * test(s3): check the stored composite ETag without counting storage keys The test pinned how many object store puts a completion makes. It now checks that every stored ETag is the composite one, which still fails when nothing was stored.