Compare commits

...

1 Commits

Author SHA1 Message Date
vrancurel afa3d236d9 bf: removing dead code
The special header handling for metadata only operation
is done in clouserver:lib/api/apiUtils/object/createAndStoreObject.js
This code is actually never reached therefore we remove it.
2019-11-15 09:53:56 -08:00
1 changed files with 0 additions and 12 deletions

View File

@ -36,18 +36,6 @@ class PfsClient {
put(stream, size, keyContext, reqUids, callback) {
const log = createLogger(reqUids);
if (keyContext.metaHeaders['x-amz-meta-mdonly'] === 'true'
|| keyContext.isDeleteMarker === true) {
const b64 = keyContext.metaHeaders['x-amz-meta-md5chksum'];
let md5 = null;
if (b64) {
md5 = new Buffer(b64, 'base64').toString('hex');
}
return callback(null, keyContext.objectKey, '',
keyContext.metaHeaders['x-amz-meta-size'],
md5
);
}
logHelper(log, 'error', 'Not implemented', errors.NotImplemented,
this._dataStoreName, this.clientType);
return callback(errors.NotImplemented);