Also adding an API to allow resyncing replication when existing object replication is enabled and the remote target is entirely lost. With the `mc replicate reset` command, the objects that are eligible for replication as per the replication config will be resynced to target if existing object replication is enabled on the rule.
Showing the changes to cmd/api-errors.go (1 of 19 files). Show all
Unified · Split
| @@ -125,6 +125,7 @@ const ( · 124 unmodified lines | ||
| 125 | 125 | ErrReplicationSourceNotVersionedError |
| 126 | 126 | ErrReplicationNeedsVersioningError |
| 127 | 127 | ErrReplicationBucketNeedsVersioningError |
| 128 | + ErrReplicationNoMatchingRuleError | |
| 128 | 129 | ErrObjectRestoreAlreadyInProgress |
| 129 | 130 | ErrNoSuchKey |
| 130 | 131 | ErrNoSuchUpload |
| @@ -859,6 +860,11 @@ var errorCodes = errorCodeMap{ · 728 unmodified lines | ||
| 859 | 860 | Description: "Remote service connection error - please check remote service credentials and target bucket", |
| 860 | 861 | HTTPStatusCode: http.StatusNotFound, |
| 861 | 862 | }, |
| 863 | + ErrReplicationNoMatchingRuleError: { | |
| 864 | + Code: "XMinioReplicationNoMatchingRule", | |
| 865 | + Description: "No matching replication rule found for this object prefix", | |
| 866 | + HTTPStatusCode: http.StatusBadRequest, | |
| 867 | + }, | |
| 862 | 868 | ErrBucketRemoteIdenticalToSource: { |
| 863 | 869 | Code: "XMinioAdminRemoteIdenticalToSource", |
| 864 | 870 | Description: "The remote target cannot be identical to source", |