mirror of https://github.com/minio/minio.git
Browse Source
Store object EC in metadata header (#19534)
Store object EC in metadata header (#19534)
Keep the EC in header, so it can be retrieved easily for dynamic quorum calculations. To not force a full metadata decode on every read the value will be 0/0 for data written in previous versions. Size is expected to increase by 2 bytes per version, since all valid values can be represented with 1 byte each. Example: ``` λ xl-meta xl.meta { "Versions": [ { "Header": { "EcM": 4, "EcN": 8, "Flags": 6, "ModTime": "2024-04-17T11:46:25.325613+02:00", "Signature": "0a409875", "Type": 1, "VersionID": "8e03504e11234957b2727bc53eda0d55" }, ... ``` Not used for operations yet.pull/19561/head

committed by
GitHub

No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 230 additions and 33 deletions
-
10cmd/metacache-entries.go
-
107cmd/xl-storage-format-v2-legacy.go
-
17cmd/xl-storage-format-v2.go
-
50cmd/xl-storage-format-v2_gen.go
-
79docs/debugging/xl-meta/main.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue