Compare commits

...

1 Commits

Author SHA1 Message Date
Bennett Buchanan be3ca870ce ft: ZENKO-315 Allow CRR without versioning 2018-06-20 11:25:05 -07:00
3 changed files with 17 additions and 4 deletions

View File

@ -41,8 +41,9 @@ function bucketPutReplication(authInfo, request, log, callback) {
if (err) {
return next(err);
}
// Replication requires that versioning is 'Enabled'.
if (!bucket.isVersioningEnabled(bucket)) {
// Replication requires that versioning is 'Enabled' unless it
// is an NFS bucket.
if (!bucket.isNFS() && !bucket.isVersioningEnabled(bucket)) {
return next(versioningNotEnabledError);
}
return next(null, config, bucket);

View File

@ -105,3 +105,16 @@ this._readLocationConstraint = readLocationConstraint || null;
### Usage
Used to store default read location of the bucket
## Model version 9
### Properties Added
```javascript
this._isNFS = isNFS || null;
```
### Usage
Used to determine whether the bucket is on NFS

View File

@ -706,8 +706,7 @@ function routeBackbeat(clientIP, request, response, log) {
return backbeatRoutes[request.method][request.resourceType]
[request.query.operation](request, response, log, next);
}
const versioningConfig = bucketInfo.getVersioningConfiguration();
if (!versioningConfig || versioningConfig.Status !== 'Enabled') {
if (!bucketInfo.isNFS() && !bucketInfo.isVersioningEnabled()) {
log.debug('bucket versioning is not enabled', {
method: request.method,
bucketName: request.bucketName,