we expect resync to start on buckets with replication rule ExistingObjects enabled, if not we reject such calls.
Showing the changes to cmd/api-errors.go (1 of 8 files). Show all
Unified · Split
| @@ -131,7 +131,7 @@ const ( · 130 unmodified lines | |||
| 131 | ErrReplicationNeedsVersioningError | 131 | ErrReplicationNeedsVersioningError |
| 132 | ErrReplicationBucketNeedsVersioningError | 132 | ErrReplicationBucketNeedsVersioningError |
| 133 | ErrReplicationDenyEditError | 133 | ErrReplicationDenyEditError |
| 134 | ErrReplicationNoMatchingRuleError | 134 | ErrReplicationNoExistingObjects |
| 135 | ErrObjectRestoreAlreadyInProgress | 135 | ErrObjectRestoreAlreadyInProgress |
| 136 | ErrNoSuchKey | 136 | ErrNoSuchKey |
| 137 | ErrNoSuchUpload | 137 | ErrNoSuchUpload |
| @@ -893,9 +893,9 @@ var errorCodes = errorCodeMap{ · 755 unmodified lines | |||
| 893 | Description: "Bandwidth limit for remote target must be atleast 100MBps", | 893 | Description: "Bandwidth limit for remote target must be atleast 100MBps", |
| 894 | HTTPStatusCode: http.StatusBadRequest, | 894 | HTTPStatusCode: http.StatusBadRequest, |
| 895 | }, | 895 | }, |
| 896 | ErrReplicationNoMatchingRuleError: { | 896 | ErrReplicationNoExistingObjects: { |
| 897 | Code: "XMinioReplicationNoMatchingRule", | 897 | Code: "XMinioReplicationNoExistingObjects", |
| 898 | Description: "No matching replication rule found for this object prefix", | 898 | Description: "No matching ExistingsObjects rule enabled", |
| 899 | HTTPStatusCode: http.StatusBadRequest, | 899 | HTTPStatusCode: http.StatusBadRequest, |
| 900 | }, | 900 | }, |
| 901 | ErrReplicationDenyEditError: { | 901 | ErrReplicationDenyEditError: { |