Skip to content

Commit

Permalink
Merge branch 'feature/CLDSRV-243-allow-backbeat-to-update-non-version…
Browse files Browse the repository at this point in the history
…ed-objects' into q/8.5
  • Loading branch information
bert-e committed Jul 20, 2022
2 parents 51e28de + 356c9f1 commit b712df6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions lib/routes/routeBackbeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,15 @@ function putMetadata(request, response, bucketInfo, objMd, log, callback) {
omVal[headerName] = objMd[headerName];
});
}
// specify both 'versioning' and 'versionId' to create a "new"
// version (updating master as well) but with specified
// versionId
const options = {
versioning: bucketInfo.isVersioningEnabled(),
versionId: omVal.versionId,
};
const options = {};
if (omVal.versionId || omVal.replicationInfo.isNFS) {
// specify both 'versioning' and 'versionId' to create a "new"
// version (updating master as well) but with specified
// versionId
options.versioning = bucketInfo.isVersioningEnabled();
options.versionId = omVal.versionId;
}

// If the object is from a source bucket without versioning (i.e. NFS),
// then we want to create a version for the replica object even though
// none was provided in the object metadata value.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenko/cloudserver",
"version": "8.5.5",
"version": "8.5.8",
"description": "Zenko CloudServer, an open-source Node.js implementation of a server handling the Amazon S3 protocol",
"main": "index.js",
"engines": {
Expand Down

0 comments on commit b712df6

Please sign in to comment.