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

Function _shouldConditionallyDelete

lib/routes/routeBackbeat.js:1374–1383  ·  view source on GitHub ↗
(request, locations)

Source from the content-addressed store, hash-verified

1372}
1373
1374function _shouldConditionallyDelete(request, locations) {
1375 if (locations.length === 0) {
1376 return false;
1377 }
1378 const storageClass = request.headers['x-scal-storage-class'];
1379 const type = storageClass && locationConstraints[storageClass] && locationConstraints[storageClass].type;
1380 const isExternalBackend = type && constants.externalBackends[type];
1381 const isNotVersioned = !locations[0].dataStoreVersionId;
1382 return isExternalBackend && isNotVersioned;
1383}
1384
1385function batchDelete(request, response, userInfo, log, callback) {
1386 return _getRequestPayload(request, (err, payload) => {

Callers 1

batchDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected