this is a major overhaul by migrating off all bucket metadata related configs into a single object '.metadata.bin' this allows us for faster bootups across 1000's of buckets and as well as keeps the code simple enough for future work and additions. Additionally also fixes #9396, #9394
Showing the changes to cmd/api-errors.go (1 of 48 files). Show all
Unified · Split
| @@ -100,6 +100,9 @@ const ( · 99 unmodified lines | ||
| 100 | 100 | ErrNoSuchBucketLifecycle |
| 101 | 101 | ErrNoSuchLifecycleConfiguration |
| 102 | 102 | ErrNoSuchBucketSSEConfig |
| 103 | + ErrNoSuchCORSConfiguration | |
| 104 | + ErrNoSuchWebsiteConfiguration | |
| 105 | + ErrReplicationConfigurationNotFoundError | |
| 103 | 106 | ErrNoSuchKey |
| 104 | 107 | ErrNoSuchUpload |
| 105 | 108 | ErrNoSuchVersion |
| @@ -793,6 +796,21 @@ var errorCodes = errorCodeMap{ · 687 unmodified lines | ||
| 793 | 796 | Description: "Object Lock configuration cannot be enabled on existing buckets", |
| 794 | 797 | HTTPStatusCode: http.StatusConflict, |
| 795 | 798 | }, |
| 799 | + ErrNoSuchCORSConfiguration: { | |
| 800 | + Code: "NoSuchCORSConfiguration", | |
| 801 | + Description: "The CORS configuration does not exist", | |
| 802 | + HTTPStatusCode: http.StatusNotFound, | |
| 803 | + }, | |
| 804 | + ErrNoSuchWebsiteConfiguration: { | |
| 805 | + Code: "NoSuchWebsiteConfiguration", | |
| 806 | + Description: "The specified bucket does not have a website configuration", | |
| 807 | + HTTPStatusCode: http.StatusNotFound, | |
| 808 | + }, | |
| 809 | + ErrReplicationConfigurationNotFoundError: { | |
| 810 | + Code: "ReplicationConfigurationNotFoundError", | |
| 811 | + Description: "The replication configuration was not found", | |
| 812 | + HTTPStatusCode: http.StatusNotFound, | |
| 813 | + }, | |
| 796 | 814 | ErrNoSuchObjectLockConfiguration: { |
| 797 | 815 | Code: "NoSuchObjectLockConfiguration", |
| 798 | 816 | Description: "The specified object does not have a ObjectLock configuration", |