History

migrate all bucket metadata into a single file (#9586)

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

Harshavardhana committed 6 years ago

Commit bd032d11 parent 730775b48 files · +1619 −2816Browse files

Showing the changes to cmd/api-errors.go (1 of 48 files). Show all

Unified · Split

cmd/api-errors.go+18−0
@@ -100,6 +100,9 @@ const ( · 99 unmodified lines
100100 ErrNoSuchBucketLifecycle
101101 ErrNoSuchLifecycleConfiguration
102102 ErrNoSuchBucketSSEConfig
103+ ErrNoSuchCORSConfiguration
104+ ErrNoSuchWebsiteConfiguration
105+ ErrReplicationConfigurationNotFoundError
103106 ErrNoSuchKey
104107 ErrNoSuchUpload
105108 ErrNoSuchVersion
@@ -793,6 +796,21 @@ var errorCodes = errorCodeMap{ · 687 unmodified lines
793796 Description: "Object Lock configuration cannot be enabled on existing buckets",
794797 HTTPStatusCode: http.StatusConflict,
795798 },
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+ },
796814 ErrNoSuchObjectLockConfiguration: {
797815 Code: "NoSuchObjectLockConfiguration",
798816 Description: "The specified object does not have a ObjectLock configuration",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t