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 | 131 | ErrReplicationNeedsVersioningError |
| 132 | 132 | ErrReplicationBucketNeedsVersioningError |
| 133 | 133 | ErrReplicationDenyEditError |
| 134 | − ErrReplicationNoMatchingRuleError | |
| 134 | + ErrReplicationNoExistingObjects | |
| 135 | 135 | ErrObjectRestoreAlreadyInProgress |
| 136 | 136 | ErrNoSuchKey |
| 137 | 137 | ErrNoSuchUpload |
| @@ -893,9 +893,9 @@ var errorCodes = errorCodeMap{ · 755 unmodified lines | ||
| 893 | 893 | Description: "Bandwidth limit for remote target must be atleast 100MBps", |
| 894 | 894 | HTTPStatusCode: http.StatusBadRequest, |
| 895 | 895 | }, |
| 896 | − ErrReplicationNoMatchingRuleError: { | |
| 897 | − Code: "XMinioReplicationNoMatchingRule", | |
| 898 | − Description: "No matching replication rule found for this object prefix", | |
| 896 | + ErrReplicationNoExistingObjects: { | |
| 897 | + Code: "XMinioReplicationNoExistingObjects", | |
| 898 | + Description: "No matching ExistingsObjects rule enabled", | |
| 899 | 899 | HTTPStatusCode: http.StatusBadRequest, |
| 900 | 900 | }, |
| 901 | 901 | ErrReplicationDenyEditError: { |