Skip to content

Commit e130629

Browse files
committed
Merge branch 'bugfix/CLDSRV-241/put-metadata' into q/8.5
2 parents 31b3469 + 8e60c2d commit e130629

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/routes/routeBackbeat.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ function putMetadata(request, response, bucketInfo, objMd, log, callback) {
501501
pushReplicationMetric(objMd, omVal, bucketName, objectKey, log);
502502
if (objMd &&
503503
headers['x-scal-replication-content'] !== 'METADATA' &&
504+
// The new data location is set to null when archiving to a Cold site.
505+
// In that case "removing old data location key" is handled by the lifecycle
506+
// transition processor.
507+
omVal.location && Array.isArray(omVal.location) &&
504508
locationKeysHaveChanged(objMd.location, omVal.location)) {
505509
log.info('removing old data locations', {
506510
method: 'putMetadata',

0 commit comments

Comments
 (0)