MCPcopy Index your code
hub / github.com/scality/cloudserver / _getLastModified

Function _getLastModified

lib/routes/routeBackbeat.js:346–358  ·  view source on GitHub ↗
(locations, log, cb)

Source from the content-addressed store, hash-verified

344*/
345
346function _getLastModified(locations, log, cb) {
347 const reqUids = log.getSerializedUids();
348 return dataClient.head(locations, reqUids, (err, data) => {
349 if (err) {
350 log.error('head object request failed', {
351 method: 'headObject',
352 error: err,
353 });
354 return cb(err);
355 }
356 return cb(null, data.LastModified || data.lastModified);
357 });
358}
359
360function headObject(request, response, log, cb) {
361 let locations;

Callers 2

headObjectFunction · 0.85
_conditionalTaggingFunction · 0.85

Calls 2

getSerializedUidsMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected