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) { if (err) {
return next(err); return next(err);
} }
// Replication requires that versioning is 'Enabled'. // Replication requires that versioning is 'Enabled' unless it
if (!bucket.isVersioningEnabled(bucket)) { // is an NFS bucket.
if (!bucket.isNFS() && !bucket.isVersioningEnabled(bucket)) {
return next(versioningNotEnabledError); return next(versioningNotEnabledError);
} }
return next(null, config, bucket); return next(null, config, bucket);

View File

@ -105,3 +105,16 @@ this._readLocationConstraint = readLocationConstraint || null;
### Usage ### Usage
Used to store default read location of the bucket 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] return backbeatRoutes[request.method][request.resourceType]
[request.query.operation](request, response, log, next); [request.query.operation](request, response, log, next);
} }
const versioningConfig = bucketInfo.getVersioningConfiguration(); if (!bucketInfo.isNFS() && !bucketInfo.isVersioningEnabled()) {
if (!versioningConfig || versioningConfig.Status !== 'Enabled') {
log.debug('bucket versioning is not enabled', { log.debug('bucket versioning is not enabled', {
method: request.method, method: request.method,
bucketName: request.bucketName, bucketName: request.bucketName,